Socket
Socket
Sign inDemoInstall

eslint

Package Overview
Dependencies
99
Maintainers
4
Versions
358
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.52.0 to 8.53.0

26

bin/eslint.js

@@ -100,6 +100,11 @@ #!/usr/bin/env node

*/
const displayedErrors = new Set();
/**
* Tracks whether an unexpected error was caught
* @type {boolean}
*/
let hadFatalError = false;
/**
* Catch and report unexpected error.

@@ -111,2 +116,3 @@ * @param {any} error The thrown error object.

process.exitCode = 2;
hadFatalError = true;

@@ -148,3 +154,3 @@ const { version } = require("../package.json");

// Otherwise, call the CLI.
process.exitCode = await require("../lib/cli").execute(
const exitCode = await require("../lib/cli").execute(
process.argv,

@@ -154,2 +160,18 @@ process.argv.includes("--stdin") ? await readStdin() : null,

);
/*
* If an uncaught exception or unhandled rejection was detected in the meantime,
* keep the fatal exit code 2 that is already assigned to `process.exitCode`.
* Without this condition, exit code 2 (unsuccessful execution) could be overwritten with
* 1 (successful execution, lint problems found) or even 0 (successful execution, no lint problems found).
* This ensures that unexpected errors that seemingly don't affect the success
* of the execution will still cause a non-zero exit code, as it's a common
* practice and the default behavior of Node.js to exit with non-zero
* in case of an uncaught exception or unhandled rejection.
*
* Otherwise, assign the exit code returned from CLI.
*/
if (!hadFatalError) {
process.exitCode = exitCode;
}
}()).catch(onFatalError);
/**
* @fileoverview Rule to enforce linebreaks after open and before close array brackets
* @author Jan Peer Stöcklmair <https://github.com/JPeer264>
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Disallows or enforces spaces inside of array brackets.
* @author Jamund Ferguson
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

/**
* @fileoverview Rule to enforce line breaks after each array element
* @author Jan Peer Stöcklmair <https://github.com/JPeer264>
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Rule to require parens in arrow function arguments.
* @author Jxck
* @deprecated in ESLint v8.53.0
*/

@@ -33,2 +34,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -35,0 +38,0 @@

/**
* @fileoverview Rule to define spacing before/after arrow function's arrow.
* @author Jxck
* @deprecated in ESLint v8.53.0
*/

@@ -20,2 +21,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -22,0 +25,0 @@

/**
* @fileoverview A rule to disallow or enforce spaces inside of single line blocks.
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Rule to flag block statements that do not use the one true brace style
* @author Ian Christian Myers
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Rule to forbid or enforce dangling commas.
* @author Ian Christian Myers
* @deprecated in ESLint v8.53.0
*/

@@ -76,2 +77,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -78,0 +81,0 @@

/**
* @fileoverview Comma spacing - validates spacing before and after comma
* @author Vignesh Anand aka vegetableman.
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

/**
* @fileoverview Comma style - enforces comma styles of two types: last and first
* @author Vignesh Anand aka vegetableman
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Disallows or enforces spaces inside computed properties.
* @author Jamund Ferguson
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

/**
* @fileoverview Validates newlines before and after dots
* @author Greg Cochard
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Require or disallow newline at the end of files
* @author Nodeca Team <https://github.com/nodeca>
* @deprecated in ESLint v8.53.0
*/

@@ -14,2 +15,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -16,0 +19,0 @@

/**
* @fileoverview Rule to control spacing within function calls
* @author Matt DuVall <http://www.mattduvall.com>
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -23,0 +26,0 @@

/**
* @fileoverview Rule to enforce line breaks between arguments of a function call
* @author Alexey Gonchar <https://github.com/finico>
* @deprecated in ESLint v8.53.0
*/

@@ -15,2 +16,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -17,0 +20,0 @@

/**
* @fileoverview enforce consistent line breaks inside function parentheses
* @author Teddy Katz
* @deprecated in ESLint v8.53.0
*/

@@ -20,2 +21,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -22,0 +25,0 @@

/**
* @fileoverview Rule to check the spacing around the * in generator functions.
* @author Jamund Ferguson
* @deprecated in ESLint v8.53.0
*/

@@ -31,2 +32,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -33,0 +36,0 @@

/**
* @fileoverview enforce the location of arrow function bodies
* @author Sharmila Jesupaul
* @deprecated in ESLint v8.53.0
*/

@@ -15,2 +16,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -17,0 +20,0 @@

/**
* @fileoverview A rule to ensure consistent quotes used in jsx syntax.
* @author Mathias Schreck <https://github.com/lo1tuma>
* @deprecated in ESLint v8.53.0
*/

@@ -42,2 +43,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -44,0 +47,0 @@

/**
* @fileoverview Rule to specify spacing of object literal keys and values
* @author Brandon Mills
* @deprecated in ESLint v8.53.0
*/

@@ -136,2 +137,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -138,0 +141,0 @@

/**
* @fileoverview Rule to enforce spacing before and after keywords.
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -67,2 +68,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -69,0 +72,0 @@

/**
* @fileoverview Rule to enforce a single linebreak style.
* @author Erik Mueller
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -23,0 +26,0 @@

/**
* @fileoverview Enforces empty lines around comments.
* @author Jamund Ferguson
* @deprecated in ESLint v8.53.0
*/

@@ -55,2 +56,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -57,0 +60,0 @@

/**
* @fileoverview Rule to check empty newline between class members
* @author 薛定谔的猫<hh_2013@foxmail.com>
* @deprecated in ESLint v8.53.0
*/

@@ -35,2 +36,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -37,0 +40,0 @@

/**
* @fileoverview Rule to check for max length on a line.
* @author Matt DuVall <http://www.mattduvall.com>
* @deprecated in ESLint v8.53.0
*/

@@ -69,2 +70,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -71,0 +74,0 @@

/**
* @fileoverview Specify the maximum number of statements allowed per line.
* @author Kenneth Williams
* @deprecated in ESLint v8.53.0
*/

@@ -20,2 +21,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -22,0 +25,0 @@

/**
* @fileoverview Enforce newlines between operands of ternary expressions
* @author Kai Cataldo
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Rule to flag when using constructor without parentheses
* @author Ilya Volodin
* @deprecated in ESLint v8.53.0
*/

@@ -25,2 +26,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -27,0 +30,0 @@

@@ -5,2 +5,3 @@ /**

* @author Burak Yigit Kaya
* @deprecated in ESLint v8.53.0
*/

@@ -19,2 +20,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -21,0 +24,0 @@

@@ -5,2 +5,3 @@ /**

* @author Jxck <https://github.com/Jxck>
* @deprecated in ESLint v8.53.0
*/

@@ -32,2 +33,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "suggestion",

@@ -34,0 +37,0 @@

/**
* @fileoverview Disallow parenthesising higher precedence subexpressions.
* @author Michael Ficarra
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Rule to flag use of unnecessary semicolons
* @author Nicholas C. Zakas
* @deprecated in ESLint v8.53.0
*/

@@ -22,2 +23,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "suggestion",

@@ -24,0 +27,0 @@

/**
* @fileoverview Rule to flag use of a leading/trailing decimal point in a numeric literal
* @author James Allardice
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "suggestion",

@@ -23,0 +26,0 @@

/**
* @fileoverview Rule to disallow mixed binary operators.
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -88,2 +89,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "suggestion",

@@ -90,0 +93,0 @@

/**
* @fileoverview Disallow mixed spaces and tabs for indentation
* @author Jary Niebur
* @deprecated in ESLint v8.53.0
*/

@@ -14,2 +15,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -16,0 +19,0 @@

/**
* @fileoverview Disallow use of multiple spaces.
* @author Nicholas C. Zakas
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

@@ -5,2 +5,3 @@ /**

* @author Greg Cochard
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

4

lib/rules/no-object-constructor.js

@@ -38,6 +38,6 @@ /**

/*
* Before an opening parenthesis, `>` (for JSX), and postfix `++` and `--` always trigger ASI;
* Before an opening parenthesis, postfix `++` and `--` always trigger ASI;
* the tokens `:`, `;`, `{` and `=>` don't expect a semicolon, as that would count as an empty statement.
*/
const PUNCTUATORS = new Set([":", ";", ">", "{", "=>", "++", "--"]);
const PUNCTUATORS = new Set([":", ";", "{", "=>", "++", "--"]);

@@ -44,0 +44,0 @@ /*

@@ -14,2 +14,33 @@ /**

//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Returns true if the node or any of the objects
* to the left of it in the member/call chain is optional.
*
* e.g. `a?.b`, `a?.b.c`, `a?.()`, `a()?.()`
* @param {ASTNode} node The expression to check
* @returns {boolean} `true` if there is a short-circuiting optional `?.`
* in the same option chain to the left of this call or member expression,
* or the node itself is an optional call or member `?.`.
*/
function isAfterOptional(node) {
let leftNode;
if (node.type === "MemberExpression") {
leftNode = node.object;
} else if (node.type === "CallExpression") {
leftNode = node.callee;
} else {
return false;
}
if (node.optional) {
return true;
}
return isAfterOptional(leftNode);
}
//------------------------------------------------------------------------------
// Rule Definition

@@ -29,6 +60,9 @@ //------------------------------------------------------------------------------

hasSuggestions: true,
schema: [],
messages: {
prototypeBuildIn: "Do not access Object.prototype method '{{prop}}' from target object."
prototypeBuildIn: "Do not access Object.prototype method '{{prop}}' from target object.",
callObjectPrototype: "Call Object.prototype.{{prop}} explicitly."
}

@@ -64,3 +98,57 @@ },

data: { prop: propName },
node
node,
suggest: [
{
messageId: "callObjectPrototype",
data: { prop: propName },
fix(fixer) {
const sourceCode = context.sourceCode;
/*
* A call after an optional chain (e.g. a?.b.hasOwnProperty(c))
* must be fixed manually because the call can be short-circuited
*/
if (isAfterOptional(node)) {
return null;
}
/*
* A call on a ChainExpression (e.g. (a?.hasOwnProperty)(c)) will trigger
* no-unsafe-optional-chaining which should be fixed before this suggestion
*/
if (node.callee.type === "ChainExpression") {
return null;
}
const objectVariable = astUtils.getVariableByName(sourceCode.getScope(node), "Object");
/*
* We can't use Object if the global Object was shadowed,
* or Object does not exist in the global scope for some reason
*/
if (!objectVariable || objectVariable.scope.type !== "global" || objectVariable.defs.length > 0) {
return null;
}
let objectText = sourceCode.getText(callee.object);
if (astUtils.getPrecedence(callee.object) <= astUtils.getPrecedence({ type: "SequenceExpression" })) {
objectText = `(${objectText})`;
}
const openParenToken = sourceCode.getTokenAfter(
node.callee,
astUtils.isOpeningParenToken
);
const isEmptyParameters = node.arguments.length === 0;
const delim = isEmptyParameters ? "" : ", ";
const fixes = [
fixer.replaceText(callee, `Object.prototype.${propName}.call`),
fixer.insertTextAfter(openParenToken, objectText + delim)
];
return fixes;
}
}
]
});

@@ -67,0 +155,0 @@ }

/**
* @fileoverview Rule to check for tabs inside a file
* @author Gyandeep Singh
* @deprecated in ESLint v8.53.0
*/

@@ -22,2 +23,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -24,0 +27,0 @@

/**
* @fileoverview Disallow trailing spaces at the end of lines.
* @author Nodeca Team <https://github.com/nodeca>
* @deprecated in ESLint v8.53.0
*/

@@ -20,2 +21,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -22,0 +25,0 @@

/**
* @fileoverview Rule to disallow whitespace before properties
* @author Kai Cataldo
* @deprecated in ESLint v8.53.0
*/

@@ -20,2 +21,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -22,0 +25,0 @@

/**
* @fileoverview enforce the location of single-line statements
* @author Teddy Katz
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

/**
* @fileoverview Rule to require or disallow line breaks inside braces.
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -150,2 +151,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -152,0 +155,0 @@

/**
* @fileoverview Disallows or enforces spaces inside of object literals.
* @author Jamund Ferguson
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

/**
* @fileoverview Rule to enforce placing object properties on separate lines.
* @author Vitor Balocco
* @deprecated in ESLint v8.53.0
*/

@@ -15,2 +16,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -17,0 +20,0 @@

/**
* @fileoverview Rule to check multiple var declarations per line
* @author Alberto Rodríguez
* @deprecated in ESLint v8.53.0
*/

@@ -14,2 +15,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "suggestion",

@@ -16,0 +19,0 @@

/**
* @fileoverview Operator linebreak - enforces operator linebreak style of two types: after and before
* @author Benoît Zugmeyer
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -23,0 +26,0 @@

/**
* @fileoverview A rule to ensure blank lines within blocks.
* @author Mathias Schreck <https://github.com/lo1tuma>
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -23,0 +26,0 @@

/**
* @fileoverview Rule to require or disallow newlines between statements
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -386,2 +387,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -388,0 +391,0 @@

/**
* @fileoverview Rule to flag non-quoted property names in object literals.
* @author Mathias Bynens <http://mathiasbynens.be/>
* @deprecated in ESLint v8.53.0
*/

@@ -22,2 +23,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "suggestion",

@@ -24,0 +27,0 @@

/**
* @fileoverview A rule to choose between single and double quote marks
* @author Matt DuVall <http://www.mattduvall.com/>, Brandon Payton
* @deprecated in ESLint v8.53.0
*/

@@ -80,2 +81,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -82,0 +85,0 @@

/**
* @fileoverview Enforce spacing between rest and spread operators and their expressions.
* @author Kai Cataldo
* @deprecated in ESLint v8.53.0
*/

@@ -15,2 +16,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -17,0 +20,0 @@

/**
* @fileoverview Validates spacing before and after semicolon
* @author Mathias Schreck
* @deprecated in ESLint v8.53.0
*/

@@ -17,2 +18,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -19,0 +22,0 @@

/**
* @fileoverview Rule to enforce location of semicolons.
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -73,2 +74,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -75,0 +78,0 @@

/**
* @fileoverview Rule to flag missing semicolons.
* @author Nicholas C. Zakas
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -23,0 +26,0 @@

/**
* @fileoverview A rule to ensure whitespace before blocks.
* @author Mathias Schreck <https://github.com/lo1tuma>
* @deprecated in ESLint v8.53.0
*/

@@ -40,2 +41,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -42,0 +45,0 @@

/**
* @fileoverview Rule to validate spacing before function paren.
* @author Mathias Schreck <https://github.com/lo1tuma>
* @deprecated in ESLint v8.53.0
*/

@@ -20,2 +21,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -22,0 +25,0 @@

/**
* @fileoverview Disallows or enforces spaces inside of parentheses.
* @author Jonathan Rajavuori
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

/**
* @fileoverview Require spaces around infix operators
* @author Michael Ficarra
* @deprecated in ESLint v8.53.0
*/

@@ -16,2 +17,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -18,0 +21,0 @@

/**
* @fileoverview This rule should require or disallow spaces before or after unary operations.
* @author Marcin Kumorek
* @deprecated in ESLint v8.53.0
*/

@@ -20,2 +21,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -22,0 +25,0 @@

/**
* @fileoverview Source code for spaced-comments rule
* @author Gyandeep Singh
* @deprecated in ESLint v8.53.0
*/

@@ -152,2 +153,4 @@ "use strict";

meta: {
deprecated: true,
replacedBy: [],
type: "suggestion",

@@ -154,0 +157,0 @@

/**
* @fileoverview Rule to enforce spacing around colons of switch statements.
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -23,0 +26,0 @@

/**
* @fileoverview Rule to enforce spacing around embedded expressions of template strings
* @author Toru Nagashima
* @deprecated in ESLint v8.53.0
*/

@@ -21,2 +22,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -23,0 +26,0 @@

/**
* @fileoverview Rule to check spacing between template tags and their literals
* @author Jonathan Wilsson
* @deprecated in ESLint v8.53.0
*/

@@ -15,2 +16,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -17,0 +20,0 @@

/**
* @fileoverview Rule to flag when IIFE is not wrapped in parens
* @author Ilya Volodin
* @deprecated in ESLint v8.53.0
*/

@@ -43,2 +44,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -45,0 +48,0 @@

/**
* @fileoverview Rule to flag when regex literals are not wrapped in parens
* @author Matt DuVall <http://www.mattduvall.com>
* @deprecated in ESLint v8.53.0
*/

@@ -15,2 +16,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -17,0 +20,0 @@

/**
* @fileoverview Rule to check the spacing around the * in yield* expressions.
* @author Bryan Smith
* @deprecated in ESLint v8.53.0
*/

@@ -15,2 +16,4 @@

meta: {
deprecated: true,
replacedBy: [],
type: "layout",

@@ -17,0 +20,0 @@

{
"name": "eslint",
"version": "8.52.0",
"version": "8.53.0",
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",

@@ -44,6 +44,2 @@ "description": "An AST-based pattern checker for JavaScript.",

],
"docs/src/rules/*.md": [
"node tools/fetch-docs-links.js",
"git add docs/src/_data/further_reading_links.json"
],
"docs/**/*.svg": "npx svgo -r --multipass"

@@ -66,4 +62,4 @@ },

"@eslint-community/regexpp": "^4.6.1",
"@eslint/eslintrc": "^2.1.2",
"@eslint/js": "8.52.0",
"@eslint/eslintrc": "^2.1.3",
"@eslint/js": "8.53.0",
"@humanwhocodes/config-array": "^0.11.13",

@@ -141,8 +137,2 @@ "@humanwhocodes/module-importer": "^1.0.1",

"memfs": "^3.0.1",
"metascraper": "^5.25.7",
"metascraper-description": "^5.25.7",
"metascraper-image": "^5.29.3",
"metascraper-logo": "^5.25.7",
"metascraper-logo-favicon": "^5.25.7",
"metascraper-title": "^5.25.7",
"mocha": "^8.3.2",

@@ -149,0 +139,0 @@ "mocha-junit-reporter": "^2.0.0",

@@ -297,3 +297,3 @@ [![npm version](https://img.shields.io/npm/v/eslint.svg)](https://www.npmjs.com/package/eslint)

<p><a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301?v=4" alt="American Express" height="64"></a></p><h3>Bronze Sponsors</h3>
<p><a href="https://themeisle.com"><img src="https://images.opencollective.com/themeisle/d5592fe/logo.png" alt="ThemeIsle" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://transloadit.com/"><img src="https://avatars.githubusercontent.com/u/125754?v=4" alt="Transloadit" height="32"></a> <a href="https://www.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a> <a href="https://quickbookstoolhub.com"><img src="https://avatars.githubusercontent.com/u/95090305?u=e5bc398ef775c9ed19f955c675cdc1fb6abf01df&v=4" alt="QuickBooks Tool hub" height="32"></a></p>
<p><a href="https://themeisle.com"><img src="https://images.opencollective.com/themeisle/d5592fe/logo.png" alt="ThemeIsle" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://transloadit.com/"><img src="https://avatars.githubusercontent.com/u/125754?v=4" alt="Transloadit" height="32"></a> <a href="https://www.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a></p>
<!--sponsorsend-->

@@ -300,0 +300,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc