ESLint
88 rules eslint@10.11.0
Complete effective rule inventory.
Rules
No enabled ESLint rules match this search.
-
array-callback-returnEnforce
returnstatements in callbacks of array methods: error in All ESLint contexts -
arrow-body-styleRequire braces around arrow function bodies
: warning in All ESLint contexts -
constructor-superRequire
super()calls in constructors: warning in JavaScript source, React JavaScript source -
eqeqeqRequire the use of
===and!==: error in All ESLint contexts -
for-directionEnforce
forloop update clause moving the counter in the right direction: warning in All ESLint contexts -
getter-returnEnforce
returnstatements in getters: warning in JavaScript source, React JavaScript source -
no-async-promise-executorDisallow using an async function as a Promise executor
: warning in All ESLint contexts -
no-await-in-loopDisallow
awaitinside of loops: error in TypeScript source, React source, JavaScript source, React JavaScript source, Syntax-only tool configuration, Design-system React source -
no-case-declarationsDisallow lexical declarations in case clauses
: warning in All ESLint contexts -
no-class-assignDisallow reassigning class members
: warning in JavaScript source, React JavaScript source -
no-compare-neg-zeroDisallow comparing against
-0: warning in All ESLint contexts -
no-cond-assignDisallow assignment operators in conditional expressions
: warning in All ESLint contexts -
no-consoleDisallow the use of
console: error in All ESLint contexts -
no-const-assignDisallow reassigning
const,using, andawait usingvariables: warning in JavaScript source, React JavaScript source -
no-constant-binary-expressionDisallow expressions where the operation doesn't affect the value
: warning in All ESLint contexts -
no-constant-conditionDisallow constant expressions in conditions
: warning in All ESLint contexts -
no-control-regexDisallow control characters in regular expressions
: warning in All ESLint contexts -
no-debuggerDisallow the use of
debugger: warning in All ESLint contexts -
no-delete-varDisallow deleting variables
: warning in All ESLint contexts -
no-dupe-argsDisallow duplicate arguments in
functiondefinitions: warning in JavaScript source, React JavaScript source -
no-dupe-class-membersDisallow duplicate class members
: warning in JavaScript source, React JavaScript source -
no-dupe-else-ifDisallow duplicate conditions in if-else-if chains
: warning in All ESLint contexts -
no-dupe-keysDisallow duplicate keys in object literals
: warning in JavaScript source, React JavaScript source -
no-duplicate-caseDisallow duplicate case labels
: warning in All ESLint contexts -
no-emptyDisallow empty block statements
: warning in All ESLint contexts -
no-empty-character-classDisallow empty character classes in regular expressions
: warning in All ESLint contexts -
no-empty-patternDisallow empty destructuring patterns
: warning in All ESLint contexts -
no-empty-static-blockDisallow empty static blocks
: warning in All ESLint contexts -
no-evalDisallow the use of
eval(): error in All ESLint contexts -
no-ex-assignDisallow reassigning exceptions in
catchclauses: warning in All ESLint contexts -
no-extra-bindDisallow unnecessary calls to
.bind(): error in All ESLint contexts -
no-extra-boolean-castDisallow unnecessary boolean casts
: warning in All ESLint contexts -
no-fallthroughDisallow fallthrough of
casestatements: error in All ESLint contexts -
no-func-assignDisallow reassigning
functiondeclarations: warning in JavaScript source, React JavaScript source -
no-global-assignDisallow assignments to native objects or read-only global variables
: warning in All ESLint contexts -
no-implied-evalDisallow the use of
eval()-like methods: error in Syntax-only tool configuration -
no-import-assignDisallow assigning to imported bindings
: warning in JavaScript source, React JavaScript source -
no-invalid-regexpDisallow invalid regular expression strings in
RegExpconstructors: warning in All ESLint contexts -
no-irregular-whitespaceDisallow irregular whitespace
: warning in All ESLint contexts -
no-loss-of-precisionDisallow literal numbers that lose precision
: warning in All ESLint contexts