mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
tools: update eslint to 8.19.0
PR-URL: https://github.com/nodejs/node/pull/43662 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
1 parent
9bc4ad0483
commit
d39fd4e5ce
1007 files changed
+2412
-1937
No files matched your search
+4
@@ -1119,6 +1119,10 @@ function runRules(sourceCode, configuredRules, ruleMapper, parserName, languageO
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof ruleListeners === "undefined" || ruleListeners === null) {
|
||||
throw new Error(`The create() function for rule '${ruleId}' did not return an object.`);
|
||||
}
|
||||
|
||||
// add all the selectors from the rule as listeners
|
||||
Object.keys(ruleListeners).forEach(selector => {
|
||||
const ruleListener = timing.enabled
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce getter and setter pairs in objects and classes",
|
||||
description: "Enforce getter and setter pairs in objects and classes",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/accessor-pairs"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce linebreaks after opening and before closing array brackets",
|
||||
description: "Enforce linebreaks after opening and before closing array brackets",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/array-bracket-newline"
|
||||
},
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent spacing inside array brackets",
|
||||
description: "Enforce consistent spacing inside array brackets",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/array-bracket-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -139,7 +139,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "enforce `return` statements in callbacks of array methods",
|
||||
description: "Enforce `return` statements in callbacks of array methods",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/array-callback-return"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce line breaks after each array element",
|
||||
description: "Enforce line breaks after each array element",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/array-element-newline"
|
||||
},
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require braces around arrow function bodies",
|
||||
description: "Require braces around arrow function bodies",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/arrow-body-style"
|
||||
},
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require parentheses around arrow function arguments",
|
||||
description: "Require parentheses around arrow function arguments",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/arrow-parens"
|
||||
},
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent spacing before and after the arrow in arrow functions",
|
||||
description: "Enforce consistent spacing before and after the arrow in arrow functions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/arrow-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce the use of variables within the scope they are defined",
|
||||
description: "Enforce the use of variables within the scope they are defined",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/block-scoped-var"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "disallow or enforce spaces inside of blocks after opening block and before closing block",
|
||||
description: "Disallow or enforce spaces inside of blocks after opening block and before closing block",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/block-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent brace style for blocks",
|
||||
description: "Enforce consistent brace style for blocks",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/brace-style"
|
||||
},
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require `return` statements after callbacks",
|
||||
description: "Require `return` statements after callbacks",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/callback-return"
|
||||
},
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce camelcase naming convention",
|
||||
description: "Enforce camelcase naming convention",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/camelcase"
|
||||
},
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce or disallow capitalization of the first letter of a comment",
|
||||
description: "Enforce or disallow capitalization of the first letter of a comment",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/capitalized-comments"
|
||||
},
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce that class methods utilize `this`",
|
||||
description: "Enforce that class methods utilize `this`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/class-methods-use-this"
|
||||
},
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow trailing commas",
|
||||
description: "Require or disallow trailing commas",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/comma-dangle"
|
||||
},
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent spacing before and after commas",
|
||||
description: "Enforce consistent spacing before and after commas",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/comma-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent comma style",
|
||||
description: "Enforce consistent comma style",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/comma-style"
|
||||
},
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum cyclomatic complexity allowed in a program",
|
||||
description: "Enforce a maximum cyclomatic complexity allowed in a program",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/complexity"
|
||||
},
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent spacing inside computed property brackets",
|
||||
description: "Enforce consistent spacing inside computed property brackets",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/computed-property-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require `return` statements to either always or never specify values",
|
||||
description: "Require `return` statements to either always or never specify values",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/consistent-return"
|
||||
},
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent naming when capturing the current execution context",
|
||||
description: "Enforce consistent naming when capturing the current execution context",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/consistent-this"
|
||||
},
|
||||
|
||||
+1
-1
@@ -122,7 +122,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "require `super()` calls in constructors",
|
||||
description: "Require `super()` calls in constructors",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/constructor-super"
|
||||
},
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent brace style for all control statements",
|
||||
description: "Enforce consistent brace style for all control statements",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/curly"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce default clauses in switch statements to be last",
|
||||
description: "Enforce default clauses in switch statements to be last",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/default-case-last"
|
||||
},
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require `default` cases in `switch` statements",
|
||||
description: "Require `default` cases in `switch` statements",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/default-case"
|
||||
},
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce default parameters to be last",
|
||||
description: "Enforce default parameters to be last",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/default-param-last"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent newlines before and after dots",
|
||||
description: "Enforce consistent newlines before and after dots",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/dot-location"
|
||||
},
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce dot notation whenever possible",
|
||||
description: "Enforce dot notation whenever possible",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/dot-notation"
|
||||
},
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow newline at the end of files",
|
||||
description: "Require or disallow newline at the end of files",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/eol-last"
|
||||
},
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require the use of `===` and `!==`",
|
||||
description: "Require the use of `===` and `!==`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/eqeqeq"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "enforce \"for\" loop update clause moving the counter in the right direction.",
|
||||
description: "Enforce \"for\" loop update clause moving the counter in the right direction.",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/for-direction"
|
||||
},
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow spacing between function identifiers and their invocations",
|
||||
description: "Require or disallow spacing between function identifiers and their invocations",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/func-call-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require function names to match the name of the variable or property to which they are assigned",
|
||||
description: "Require function names to match the name of the variable or property to which they are assigned",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/func-name-matching"
|
||||
},
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow named `function` expressions",
|
||||
description: "Require or disallow named `function` expressions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/func-names"
|
||||
},
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce the consistent use of either `function` declarations or expressions",
|
||||
description: "Enforce the consistent use of either `function` declarations or expressions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/func-style"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce line breaks between arguments of a function call",
|
||||
description: "Enforce line breaks between arguments of a function call",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/function-call-argument-newline"
|
||||
},
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent line breaks inside function parentheses",
|
||||
description: "Enforce consistent line breaks inside function parentheses",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/function-paren-newline"
|
||||
},
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent spacing around `*` operators in generator functions",
|
||||
description: "Enforce consistent spacing around `*` operators in generator functions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/generator-star-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "enforce `return` statements in getters",
|
||||
description: "Enforce `return` statements in getters",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/getter-return"
|
||||
},
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require `require()` calls to be placed at top-level module scope",
|
||||
description: "Require `require()` calls to be placed at top-level module scope",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/global-require"
|
||||
},
|
||||
|
||||
+1
-1
@@ -96,7 +96,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require grouped accessor pairs in object literals and classes",
|
||||
description: "Require grouped accessor pairs in object literals and classes",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/grouped-accessor-pairs"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require `for-in` loops to include an `if` statement",
|
||||
description: "Require `for-in` loops to include an `if` statement",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/guard-for-in"
|
||||
},
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require error handling in callbacks",
|
||||
description: "Require error handling in callbacks",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/handle-callback-err"
|
||||
},
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow specified identifiers",
|
||||
description: "Disallow specified identifiers",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/id-blacklist"
|
||||
},
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow specified identifiers",
|
||||
description: "Disallow specified identifiers",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/id-denylist"
|
||||
},
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce minimum and maximum identifier lengths",
|
||||
description: "Enforce minimum and maximum identifier lengths",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/id-length"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require identifiers to match a specified regular expression",
|
||||
description: "Require identifiers to match a specified regular expression",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/id-match"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce the location of arrow function bodies",
|
||||
description: "Enforce the location of arrow function bodies",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/implicit-arrow-linebreak"
|
||||
},
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent indentation",
|
||||
description: "Enforce consistent indentation",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/indent-legacy"
|
||||
},
|
||||
|
||||
+3
-3
@@ -500,7 +500,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent indentation",
|
||||
description: "Enforce consistent indentation",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/indent"
|
||||
},
|
||||
@@ -1211,7 +1211,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement": node => addBlocklessNodeIndent(node.body),
|
||||
"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement": node => addBlocklessNodeIndent(node.body),
|
||||
|
||||
ExportNamedDeclaration(node) {
|
||||
if (node.declaration === null) {
|
||||
@@ -1268,7 +1268,7 @@ module.exports = {
|
||||
*
|
||||
* Traversal into the node sets indentation of the semicolon, so we need to override it on exit.
|
||||
*/
|
||||
":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement):exit"(node) {
|
||||
":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(node) {
|
||||
let nodesToCheck;
|
||||
|
||||
if (node.type === "IfStatement") {
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow initialization in variable declarations",
|
||||
description: "Require or disallow initialization in variable declarations",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/init-declarations"
|
||||
},
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce the consistent use of either double or single quotes in JSX attributes",
|
||||
description: "Enforce the consistent use of either double or single quotes in JSX attributes",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/jsx-quotes"
|
||||
},
|
||||
|
||||
+1
-1
@@ -139,7 +139,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent spacing between keys and values in object literal properties",
|
||||
description: "Enforce consistent spacing between keys and values in object literal properties",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/key-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent spacing before and after keywords",
|
||||
description: "Enforce consistent spacing before and after keywords",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/keyword-spacing"
|
||||
},
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce position of line comments",
|
||||
description: "Enforce position of line comments",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/line-comment-position"
|
||||
},
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce consistent linebreak style",
|
||||
description: "Enforce consistent linebreak style",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/linebreak-style"
|
||||
},
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require empty lines around comments",
|
||||
description: "Require empty lines around comments",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/lines-around-comment"
|
||||
},
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow newlines around directives",
|
||||
description: "Require or disallow newlines around directives",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/lines-around-directive"
|
||||
},
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow an empty line between class members",
|
||||
description: "Require or disallow an empty line between class members",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/lines-between-class-members"
|
||||
},
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum number of classes per file",
|
||||
description: "Enforce a maximum number of classes per file",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-classes-per-file"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum depth that blocks can be nested",
|
||||
description: "Enforce a maximum depth that blocks can be nested",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-depth"
|
||||
},
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum line length",
|
||||
description: "Enforce a maximum line length",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-len"
|
||||
},
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum number of lines of code in a function",
|
||||
description: "Enforce a maximum number of lines of code in a function",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-lines-per-function"
|
||||
},
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum number of lines per file",
|
||||
description: "Enforce a maximum number of lines per file",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-lines"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum depth that callbacks can be nested",
|
||||
description: "Enforce a maximum depth that callbacks can be nested",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-nested-callbacks"
|
||||
},
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum number of parameters in function definitions",
|
||||
description: "Enforce a maximum number of parameters in function definitions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-params"
|
||||
},
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum number of statements allowed per line",
|
||||
description: "Enforce a maximum number of statements allowed per line",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-statements-per-line"
|
||||
},
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a maximum number of statements allowed in function blocks",
|
||||
description: "Enforce a maximum number of statements allowed in function blocks",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/max-statements"
|
||||
},
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "enforce a particular style for multiline comments",
|
||||
description: "Enforce a particular style for multiline comments",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/multiline-comment-style"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce newlines between operands of ternary expressions",
|
||||
description: "Enforce newlines between operands of ternary expressions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/multiline-ternary"
|
||||
},
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require constructor names to begin with a capital letter",
|
||||
description: "Require constructor names to begin with a capital letter",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/new-cap"
|
||||
},
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "enforce or disallow parentheses when invoking a constructor with no arguments",
|
||||
description: "Enforce or disallow parentheses when invoking a constructor with no arguments",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/new-parens"
|
||||
},
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow an empty line after variable declarations",
|
||||
description: "Require or disallow an empty line after variable declarations",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/newline-after-var"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require an empty line before `return` statements",
|
||||
description: "Require an empty line before `return` statements",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/newline-before-return"
|
||||
},
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ module.exports = {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "require a newline after each call in a method chain",
|
||||
description: "Require a newline after each call in a method chain",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/newline-per-chained-call"
|
||||
},
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow the use of `alert`, `confirm`, and `prompt`",
|
||||
description: "Disallow the use of `alert`, `confirm`, and `prompt`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-alert"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow `Array` constructors",
|
||||
description: "Disallow `Array` constructors",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-array-constructor"
|
||||
},
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow using an async function as a Promise executor",
|
||||
description: "Disallow using an async function as a Promise executor",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-async-promise-executor"
|
||||
},
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow `await` inside of loops",
|
||||
description: "Disallow `await` inside of loops",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-await-in-loop"
|
||||
},
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow bitwise operators",
|
||||
description: "Disallow bitwise operators",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-bitwise"
|
||||
},
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow use of the `Buffer()` constructor",
|
||||
description: "Disallow use of the `Buffer()` constructor",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-buffer-constructor"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow the use of `arguments.caller` or `arguments.callee`",
|
||||
description: "Disallow the use of `arguments.caller` or `arguments.callee`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-caller"
|
||||
},
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow lexical declarations in case clauses",
|
||||
description: "Disallow lexical declarations in case clauses",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-case-declarations"
|
||||
},
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow `catch` clause parameters from shadowing variables in the outer scope",
|
||||
description: "Disallow `catch` clause parameters from shadowing variables in the outer scope",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-catch-shadow"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow reassigning class members",
|
||||
description: "Disallow reassigning class members",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-class-assign"
|
||||
},
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow comparing against -0",
|
||||
description: "Disallow comparing against -0",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-compare-neg-zero"
|
||||
},
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow assignment operators in conditional expressions",
|
||||
description: "Disallow assignment operators in conditional expressions",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-cond-assign"
|
||||
},
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow arrow functions where they could be confused with comparisons",
|
||||
description: "Disallow arrow functions where they could be confused with comparisons",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-confusing-arrow"
|
||||
},
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow the use of `console`",
|
||||
description: "Disallow the use of `console`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-console"
|
||||
},
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow reassigning `const` variables",
|
||||
description: "Disallow reassigning `const` variables",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-const-assign"
|
||||
},
|
||||
|
||||
+1
-1
@@ -432,7 +432,7 @@ module.exports = {
|
||||
meta: {
|
||||
type: "problem",
|
||||
docs: {
|
||||
description: "disallow expressions where the operation doesn't affect the value",
|
||||
description: "Disallow expressions where the operation doesn't affect the value",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-constant-binary-expression"
|
||||
},
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow constant expressions in conditions",
|
||||
description: "Disallow constant expressions in conditions",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-constant-condition"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow returning value from constructor",
|
||||
description: "Disallow returning value from constructor",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-constructor-return"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow `continue` statements",
|
||||
description: "Disallow `continue` statements",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-continue"
|
||||
},
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow control characters in regular expressions",
|
||||
description: "Disallow control characters in regular expressions",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-control-regex"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow the use of `debugger`",
|
||||
description: "Disallow the use of `debugger`",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-debugger"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow deleting variables",
|
||||
description: "Disallow deleting variables",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-delete-var"
|
||||
},
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ module.exports = {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow division operators explicitly at the beginning of regular expressions",
|
||||
description: "Disallow division operators explicitly at the beginning of regular expressions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-div-regex"
|
||||
},
|
||||
|
||||
Loaded 100 of 1007 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user