-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(deps): bump eslint from 8.52.0 to 8.53.0 #1648
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependabot
bot
added
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
labels
Nov 6, 2023
Diff between eslint 8.52.0 and 8.53.0diff --git a/lib/rules/array-bracket-newline.js b/lib/rules/array-bracket-newline.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/array-bracket-newline.js
+++ b/lib/rules/array-bracket-newline.js
@@ -2,4 +2,5 @@
* @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
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/array-bracket-spacing.js b/lib/rules/array-bracket-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/array-bracket-spacing.js
+++ b/lib/rules/array-bracket-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Disallows or enforces spaces inside of array brackets.
* @author Jamund Ferguson
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -14,4 +15,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/array-element-newline.js b/lib/rules/array-element-newline.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/array-element-newline.js
+++ b/lib/rules/array-element-newline.js
@@ -2,4 +2,5 @@
* @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
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/arrow-parens.js b/lib/rules/arrow-parens.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/arrow-parens.js
+++ b/lib/rules/arrow-parens.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to require parens in arrow function arguments.
* @author Jxck
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -31,4 +32,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/arrow-spacing.js b/lib/rules/arrow-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/arrow-spacing.js
+++ b/lib/rules/arrow-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to define spacing before/after arrow function's arrow.
* @author Jxck
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -18,4 +19,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/block-spacing.js b/lib/rules/block-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/block-spacing.js
+++ b/lib/rules/block-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview A rule to disallow or enforce spaces inside of single line blocks.
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/brace-style.js b/lib/rules/brace-style.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/brace-style.js
+++ b/lib/rules/brace-style.js
@@ -2,4 +2,5 @@
* @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
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/comma-dangle.js b/lib/rules/comma-dangle.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/comma-dangle.js
+++ b/lib/rules/comma-dangle.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to forbid or enforce dangling commas.
* @author Ian Christian Myers
+ * @deprecated in ESLint v8.53.0
*/
@@ -74,4 +75,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/comma-spacing.js b/lib/rules/comma-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/comma-spacing.js
+++ b/lib/rules/comma-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Comma spacing - validates spacing before and after comma
* @author Vignesh Anand aka vegetableman.
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -14,4 +15,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/comma-style.js b/lib/rules/comma-style.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/comma-style.js
+++ b/lib/rules/comma-style.js
@@ -2,4 +2,5 @@
* @fileoverview Comma style - enforces comma styles of two types: last and first
* @author Vignesh Anand aka vegetableman
+ * @deprecated in ESLint v8.53.0
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/computed-property-spacing.js b/lib/rules/computed-property-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/computed-property-spacing.js
+++ b/lib/rules/computed-property-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Disallows or enforces spaces inside computed properties.
* @author Jamund Ferguson
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -14,4 +15,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/dot-location.js b/lib/rules/dot-location.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/dot-location.js
+++ b/lib/rules/dot-location.js
@@ -2,4 +2,5 @@
* @fileoverview Validates newlines before and after dots
* @author Greg Cochard
+ * @deprecated in ESLint v8.53.0
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/eol-last.js b/lib/rules/eol-last.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/eol-last.js
+++ b/lib/rules/eol-last.js
@@ -2,4 +2,5 @@
* @fileoverview Require or disallow newline at the end of files
* @author Nodeca Team <https://github.com/nodeca>
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -12,4 +13,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/bin/eslint.js b/bin/eslint.js
index v8.52.0..v8.53.0 100755
--- a/bin/eslint.js
+++ b/bin/eslint.js
@@ -98,8 +98,13 @@
* @type {Set<string>}
*/
-
const displayedErrors = new Set();
/**
+ * Tracks whether an unexpected error was caught
+ * @type {boolean}
+ */
+let hadFatalError = false;
+
+/**
* Catch and report unexpected error.
* @param {any} error The thrown error object.
@@ -108,4 +113,5 @@
function onFatalError(error) {
process.exitCode = 2;
+ hadFatalError = true;
const { version } = require("../package.json");
@@ -144,8 +150,24 @@
// Otherwise, call the CLI.
- process.exitCode = await require("../lib/cli").execute(
+ const exitCode = await require("../lib/cli").execute(
process.argv,
process.argv.includes("--stdin") ? await readStdin() : null,
true
);
+
+ /*
+ * 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);
diff --git a/lib/rules/func-call-spacing.js b/lib/rules/func-call-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/func-call-spacing.js
+++ b/lib/rules/func-call-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to control spacing within function calls
* @author Matt DuVall <http://www.mattduvall.com>
+ * @deprecated in ESLint v8.53.0
*/
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/function-call-argument-newline.js b/lib/rules/function-call-argument-newline.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/function-call-argument-newline.js
+++ b/lib/rules/function-call-argument-newline.js
@@ -2,4 +2,5 @@
* @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
*/
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/function-paren-newline.js b/lib/rules/function-paren-newline.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/function-paren-newline.js
+++ b/lib/rules/function-paren-newline.js
@@ -2,4 +2,5 @@
* @fileoverview enforce consistent line breaks inside function parentheses
* @author Teddy Katz
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -18,4 +19,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/generator-star-spacing.js b/lib/rules/generator-star-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/generator-star-spacing.js
+++ b/lib/rules/generator-star-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to check the spacing around the * in generator functions.
* @author Jamund Ferguson
+ * @deprecated in ESLint v8.53.0
*/
@@ -29,4 +30,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/implicit-arrow-linebreak.js b/lib/rules/implicit-arrow-linebreak.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/implicit-arrow-linebreak.js
+++ b/lib/rules/implicit-arrow-linebreak.js
@@ -2,4 +2,5 @@
* @fileoverview enforce the location of arrow function bodies
* @author Sharmila Jesupaul
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/indent.js b/lib/rules/indent.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/indent.js
+++ b/lib/rules/indent.js
@@ -5,4 +5,5 @@
* @author Vitaly Puzrin
* @author Gyandeep Singh
+ * @deprecated in ESLint v8.53.0
*/
@@ -494,4 +495,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/jsx-quotes.js b/lib/rules/jsx-quotes.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/jsx-quotes.js
+++ b/lib/rules/jsx-quotes.js
@@ -2,4 +2,5 @@
* @fileoverview A rule to ensure consistent quotes used in jsx syntax.
* @author Mathias Schreck <https://github.com/lo1tuma>
+ * @deprecated in ESLint v8.53.0
*/
@@ -40,4 +41,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/key-spacing.js b/lib/rules/key-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/key-spacing.js
+++ b/lib/rules/key-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to specify spacing of object literal keys and values
* @author Brandon Mills
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -134,4 +135,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/keyword-spacing.js b/lib/rules/keyword-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/keyword-spacing.js
+++ b/lib/rules/keyword-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to enforce spacing before and after keywords.
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -65,4 +66,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/linebreak-style.js b/lib/rules/linebreak-style.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/linebreak-style.js
+++ b/lib/rules/linebreak-style.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to enforce a single linebreak style.
* @author Erik Mueller
+ * @deprecated in ESLint v8.53.0
*/
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/lines-around-comment.js b/lib/rules/lines-around-comment.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/lines-around-comment.js
+++ b/lib/rules/lines-around-comment.js
@@ -2,4 +2,5 @@
* @fileoverview Enforces empty lines around comments.
* @author Jamund Ferguson
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -53,4 +54,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/lines-between-class-members.js b/lib/rules/lines-between-class-members.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/lines-between-class-members.js
+++ b/lib/rules/lines-between-class-members.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to check empty newline between class members
* @author 薛定谔的猫<hh_2013@foxmail.com>
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -33,4 +34,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/max-len.js b/lib/rules/max-len.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/max-len.js
+++ b/lib/rules/max-len.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to check for max length on a line.
* @author Matt DuVall <http://www.mattduvall.com>
+ * @deprecated in ESLint v8.53.0
*/
@@ -67,4 +68,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/max-statements-per-line.js b/lib/rules/max-statements-per-line.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/max-statements-per-line.js
+++ b/lib/rules/max-statements-per-line.js
@@ -2,4 +2,5 @@
* @fileoverview Specify the maximum number of statements allowed per line.
* @author Kenneth Williams
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -18,4 +19,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/multiline-ternary.js b/lib/rules/multiline-ternary.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/multiline-ternary.js
+++ b/lib/rules/multiline-ternary.js
@@ -2,4 +2,5 @@
* @fileoverview Enforce newlines between operands of ternary expressions
* @author Kai Cataldo
+ * @deprecated in ESLint v8.53.0
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/new-parens.js b/lib/rules/new-parens.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/new-parens.js
+++ b/lib/rules/new-parens.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to flag when using constructor without parentheses
* @author Ilya Volodin
+ * @deprecated in ESLint v8.53.0
*/
@@ -23,4 +24,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/newline-per-chained-call.js b/lib/rules/newline-per-chained-call.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/newline-per-chained-call.js
+++ b/lib/rules/newline-per-chained-call.js
@@ -3,4 +3,5 @@
* @author Rajendra Patil
* @author Burak Yigit Kaya
+ * @deprecated in ESLint v8.53.0
*/
@@ -16,4 +17,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/no-confusing-arrow.js b/lib/rules/no-confusing-arrow.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-confusing-arrow.js
+++ b/lib/rules/no-confusing-arrow.js
@@ -3,4 +3,5 @@
* confused with comparisons
* @author Jxck <https://github.com/Jxck>
+ * @deprecated in ESLint v8.53.0
*/
@@ -29,4 +30,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "suggestion",
diff --git a/lib/rules/no-extra-parens.js b/lib/rules/no-extra-parens.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-extra-parens.js
+++ b/lib/rules/no-extra-parens.js
@@ -2,4 +2,5 @@
* @fileoverview Disallow parenthesising higher precedence subexpressions.
* @author Michael Ficarra
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/no-extra-semi.js b/lib/rules/no-extra-semi.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-extra-semi.js
+++ b/lib/rules/no-extra-semi.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to flag use of unnecessary semicolons
* @author Nicholas C. Zakas
+ * @deprecated in ESLint v8.53.0
*/
@@ -20,4 +21,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "suggestion",
diff --git a/lib/rules/no-floating-decimal.js b/lib/rules/no-floating-decimal.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-floating-decimal.js
+++ b/lib/rules/no-floating-decimal.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to flag use of a leading/trailing decimal point in a numeric literal
* @author James Allardice
+ * @deprecated in ESLint v8.53.0
*/
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "suggestion",
diff --git a/lib/rules/no-mixed-operators.js b/lib/rules/no-mixed-operators.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-mixed-operators.js
+++ b/lib/rules/no-mixed-operators.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to disallow mixed binary operators.
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -86,4 +87,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "suggestion",
diff --git a/lib/rules/no-mixed-spaces-and-tabs.js b/lib/rules/no-mixed-spaces-and-tabs.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-mixed-spaces-and-tabs.js
+++ b/lib/rules/no-mixed-spaces-and-tabs.js
@@ -2,4 +2,5 @@
* @fileoverview Disallow mixed spaces and tabs for indentation
* @author Jary Niebur
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -12,4 +13,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/no-multi-spaces.js b/lib/rules/no-multi-spaces.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-multi-spaces.js
+++ b/lib/rules/no-multi-spaces.js
@@ -2,4 +2,5 @@
* @fileoverview Disallow use of multiple spaces.
* @author Nicholas C. Zakas
+ * @deprecated in ESLint v8.53.0
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/no-multiple-empty-lines.js b/lib/rules/no-multiple-empty-lines.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-multiple-empty-lines.js
+++ b/lib/rules/no-multiple-empty-lines.js
@@ -3,4 +3,5 @@
* implementation adapted from the no-trailing-spaces rule.
* @author Greg Cochard
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/no-object-constructor.js b/lib/rules/no-object-constructor.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-object-constructor.js
+++ b/lib/rules/no-object-constructor.js
@@ -36,8 +36,8 @@
/*
- * 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([":", ";", "{", "=>", "++", "--"]);
/*
diff --git a/lib/rules/no-prototype-builtins.js b/lib/rules/no-prototype-builtins.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-prototype-builtins.js
+++ b/lib/rules/no-prototype-builtins.js
@@ -12,4 +12,35 @@
//------------------------------------------------------------------------------
+// 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
//------------------------------------------------------------------------------
@@ -26,8 +57,11 @@
},
+ 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."
}
},
@@ -60,5 +94,59 @@
loc: callee.property.loc,
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;
+ }
+ }
+ ]
});
}
diff --git a/lib/rules/no-tabs.js b/lib/rules/no-tabs.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-tabs.js
+++ b/lib/rules/no-tabs.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to check for tabs inside a file
* @author Gyandeep Singh
+ * @deprecated in ESLint v8.53.0
*/
@@ -20,4 +21,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/no-trailing-spaces.js b/lib/rules/no-trailing-spaces.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-trailing-spaces.js
+++ b/lib/rules/no-trailing-spaces.js
@@ -2,4 +2,5 @@
* @fileoverview Disallow trailing spaces at the end of lines.
* @author Nodeca Team <https://github.com/nodeca>
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -18,4 +19,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/no-whitespace-before-property.js b/lib/rules/no-whitespace-before-property.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/no-whitespace-before-property.js
+++ b/lib/rules/no-whitespace-before-property.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to disallow whitespace before properties
* @author Kai Cataldo
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -18,4 +19,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/nonblock-statement-body-position.js b/lib/rules/nonblock-statement-body-position.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/nonblock-statement-body-position.js
+++ b/lib/rules/nonblock-statement-body-position.js
@@ -2,4 +2,5 @@
* @fileoverview enforce the location of single-line statements
* @author Teddy Katz
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -14,4 +15,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/object-curly-newline.js b/lib/rules/object-curly-newline.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/object-curly-newline.js
+++ b/lib/rules/object-curly-newline.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to require or disallow line breaks inside braces.
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -148,4 +149,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/object-curly-spacing.js b/lib/rules/object-curly-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/object-curly-spacing.js
+++ b/lib/rules/object-curly-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Disallows or enforces spaces inside of object literals.
* @author Jamund Ferguson
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -14,4 +15,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/object-property-newline.js b/lib/rules/object-property-newline.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/object-property-newline.js
+++ b/lib/rules/object-property-newline.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to enforce placing object properties on separate lines.
* @author Vitor Balocco
+ * @deprecated in ESLint v8.53.0
*/
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/one-var-declaration-per-line.js b/lib/rules/one-var-declaration-per-line.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/one-var-declaration-per-line.js
+++ b/lib/rules/one-var-declaration-per-line.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to check multiple var declarations per line
* @author Alberto Rodríguez
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -12,4 +13,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "suggestion",
diff --git a/lib/rules/operator-linebreak.js b/lib/rules/operator-linebreak.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/operator-linebreak.js
+++ b/lib/rules/operator-linebreak.js
@@ -2,4 +2,5 @@
* @fileoverview Operator linebreak - enforces operator linebreak style of two types: after and before
* @author Benoît Zugmeyer
+ * @deprecated in ESLint v8.53.0
*/
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/padded-blocks.js b/lib/rules/padded-blocks.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/padded-blocks.js
+++ b/lib/rules/padded-blocks.js
@@ -2,4 +2,5 @@
* @fileoverview A rule to ensure blank lines within blocks.
* @author Mathias Schreck <https://github.com/lo1tuma>
+ * @deprecated in ESLint v8.53.0
*/
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/padding-line-between-statements.js b/lib/rules/padding-line-between-statements.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/padding-line-between-statements.js
+++ b/lib/rules/padding-line-between-statements.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to require or disallow newlines between statements
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -384,4 +385,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/quote-props.js b/lib/rules/quote-props.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/quote-props.js
+++ b/lib/rules/quote-props.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to flag non-quoted property names in object literals.
* @author Mathias Bynens <http://mathiasbynens.be/>
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -20,4 +21,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "suggestion",
diff --git a/lib/rules/quotes.js b/lib/rules/quotes.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/quotes.js
+++ b/lib/rules/quotes.js
@@ -2,4 +2,5 @@
* @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
*/
@@ -78,4 +79,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/rest-spread-spacing.js b/lib/rules/rest-spread-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/rest-spread-spacing.js
+++ b/lib/rules/rest-spread-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Enforce spacing between rest and spread operators and their expressions.
* @author Kai Cataldo
+ * @deprecated in ESLint v8.53.0
*/
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/semi-spacing.js b/lib/rules/semi-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/semi-spacing.js
+++ b/lib/rules/semi-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Validates spacing before and after semicolon
* @author Mathias Schreck
+ * @deprecated in ESLint v8.53.0
*/
@@ -15,4 +16,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/semi-style.js b/lib/rules/semi-style.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/semi-style.js
+++ b/lib/rules/semi-style.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to enforce location of semicolons.
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -71,4 +72,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/semi.js b/lib/rules/semi.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/semi.js
+++ b/lib/rules/semi.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to flag missing semicolons.
* @author Nicholas C. Zakas
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/space-before-blocks.js b/lib/rules/space-before-blocks.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/space-before-blocks.js
+++ b/lib/rules/space-before-blocks.js
@@ -2,4 +2,5 @@
* @fileoverview A rule to ensure whitespace before blocks.
* @author Mathias Schreck <https://github.com/lo1tuma>
+ * @deprecated in ESLint v8.53.0
*/
@@ -38,4 +39,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/space-before-function-paren.js b/lib/rules/space-before-function-paren.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/space-before-function-paren.js
+++ b/lib/rules/space-before-function-paren.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to validate spacing before function paren.
* @author Mathias Schreck <https://github.com/lo1tuma>
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -18,4 +19,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/space-in-parens.js b/lib/rules/space-in-parens.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/space-in-parens.js
+++ b/lib/rules/space-in-parens.js
@@ -2,4 +2,5 @@
* @fileoverview Disallows or enforces spaces inside of parentheses.
* @author Jonathan Rajavuori
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -14,4 +15,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/space-infix-ops.js b/lib/rules/space-infix-ops.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/space-infix-ops.js
+++ b/lib/rules/space-infix-ops.js
@@ -2,4 +2,5 @@
* @fileoverview Require spaces around infix operators
* @author Michael Ficarra
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -14,4 +15,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/space-unary-ops.js b/lib/rules/space-unary-ops.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/space-unary-ops.js
+++ b/lib/rules/space-unary-ops.js
@@ -2,4 +2,5 @@
* @fileoverview This rule should require or disallow spaces before or after unary operations.
* @author Marcin Kumorek
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -18,4 +19,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/spaced-comment.js b/lib/rules/spaced-comment.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/spaced-comment.js
+++ b/lib/rules/spaced-comment.js
@@ -2,4 +2,5 @@
* @fileoverview Source code for spaced-comments rule
* @author Gyandeep Singh
+ * @deprecated in ESLint v8.53.0
*/
"use strict";
@@ -150,4 +151,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "suggestion",
diff --git a/lib/rules/switch-colon-spacing.js b/lib/rules/switch-colon-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/switch-colon-spacing.js
+++ b/lib/rules/switch-colon-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to enforce spacing around colons of switch statements.
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/template-curly-spacing.js b/lib/rules/template-curly-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/template-curly-spacing.js
+++ b/lib/rules/template-curly-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to enforce spacing around embedded expressions of template strings
* @author Toru Nagashima
+ * @deprecated in ESLint v8.53.0
*/
@@ -19,4 +20,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/template-tag-spacing.js b/lib/rules/template-tag-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/template-tag-spacing.js
+++ b/lib/rules/template-tag-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to check spacing between template tags and their literals
* @author Jonathan Wilsson
+ * @deprecated in ESLint v8.53.0
*/
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/wrap-iife.js b/lib/rules/wrap-iife.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/wrap-iife.js
+++ b/lib/rules/wrap-iife.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to flag when IIFE is not wrapped in parens
* @author Ilya Volodin
+ * @deprecated in ESLint v8.53.0
*/
@@ -41,4 +42,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/wrap-regex.js b/lib/rules/wrap-regex.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/wrap-regex.js
+++ b/lib/rules/wrap-regex.js
@@ -2,4 +2,5 @@
* @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
*/
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/lib/rules/yield-star-spacing.js b/lib/rules/yield-star-spacing.js
index v8.52.0..v8.53.0 100644
--- a/lib/rules/yield-star-spacing.js
+++ b/lib/rules/yield-star-spacing.js
@@ -2,4 +2,5 @@
* @fileoverview Rule to check the spacing around the * in yield* expressions.
* @author Bryan Smith
+ * @deprecated in ESLint v8.53.0
*/
@@ -13,4 +14,6 @@
module.exports = {
meta: {
+ deprecated: true,
+ replacedBy: [],
type: "layout",
diff --git a/package.json b/package.json
index v8.52.0..v8.53.0 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
"name": "eslint",
- "version": "8.52.0",
+ "version": "8.53.0",
"author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
"description": "An AST-based pattern checker for JavaScript.",
@@ -42,8 +42,4 @@
"git add packages/js/src/configs/eslint-all.js"
],
- "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"
},
@@ -63,6 +59,6 @@
"@eslint-community/eslint-utils": "^4.2.0",
"@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",
"@humanwhocodes/module-importer": "^1.0.1",
@@ -137,10 +133,4 @@
"marked": "^4.0.8",
"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",
"mocha-junit-reporter": "^2.0.0",
diff --git a/README.md b/README.md
index v8.52.0..v8.53.0 100644
--- a/README.md
+++ b/README.md
@@ -295,5 +295,5 @@
<p><a href="https://engineering.salesforce.com"><img src="https://images.opencollective.com/salesforce/ca8f997/logo.png" alt="Salesforce" height="96"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="96"></a></p><h3>Silver Sponsors</h3>
<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-->
Command detailsnpm diff --diff=eslint@8.52.0 --diff=eslint@8.53.0 --diff-unified=2 See also the Reported by ybiquitous/npm-diff-action@v1.5.0 (Node.js 20.9.0 and npm 10.2.3) |
dependabot
bot
force-pushed
the
dependabot/npm_and_yarn/eslint-8.53.0
branch
from
November 6, 2023 02:18
9383d6a
to
1d7bb2c
Compare
Bumps [eslint](https://github.com/eslint/eslint) from 8.52.0 to 8.53.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.52.0...v8.53.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
bot
force-pushed
the
dependabot/npm_and_yarn/eslint-8.53.0
branch
from
November 6, 2023 02:21
1d7bb2c
to
aeff2f8
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps eslint from 8.52.0 to 8.53.0.
Release notes
Sourced from eslint's releases.
Changelog
Sourced from eslint's changelog.
Commits
cb9393d
8.53.0ec361d1
Build: changelog update for 8.53.0ba4d4d5
chore: remove metascraper (#17707)0d07338
chore: Update dependencies (#17706)93256a3
chore: package.json update for@eslint/js
releaseab8c60d
docs: change position of return to top button (#17688)528e1c0
feat: Deprecate formatting rules (#17696)485ec7d
test: fix ESLint tests for caching (#17699)c0b11dd
feat: Add suggestions for no-prototype-builtins (#17677)4fc44c0
docs: update twitter icon to new X icon (#17687)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major version
will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor version
will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>
will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>
will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>
will remove the ignore condition of the specified dependency and ignore conditions