ESLint
88 rules eslint@10.11.0
Complete effective rule inventory.
Rules
No enabled ESLint rules match this search.
-
no-misleading-character-classDisallow characters which are made with multiple code points in character class syntax
: warning in All ESLint contexts -
no-new-funcDisallow
newoperators with theFunctionobject: error in Syntax-only tool configuration -
no-new-native-nonconstructorDisallow
newoperators with global non-constructor functions: warning in JavaScript source, React JavaScript source -
no-nonoctal-decimal-escapeDisallow
\8and\9escape sequences in string literals: warning in All ESLint contexts -
no-obj-callsDisallow calling global object properties as functions
: warning in JavaScript source, React JavaScript source -
no-octalDisallow octal literals
: warning in All ESLint contexts -
no-param-reassignDisallow reassigning function parameters
: error in All ESLint contexts -
no-prototype-builtinsDisallow calling some
Object.prototypemethods directly on objects: error in All ESLint contexts -
no-redeclareDisallow variable redeclaration
: warning in JavaScript source, React JavaScript source -
no-regex-spacesDisallow multiple spaces in regular expressions
: warning in All ESLint contexts -
no-restricted-importsDisallow specified modules when loaded by
import: error in All ESLint contexts -
no-restricted-syntaxDisallow specified syntax
: error in All ESLint contexts -
no-return-awaitDisallow unnecessary
return await: error in All ESLint contexts -
no-self-assignDisallow assignments where both sides are exactly the same
: warning in All ESLint contexts -
no-setter-returnDisallow returning values from setters
: warning in JavaScript source, React JavaScript source -
no-shadow-restricted-namesDisallow identifiers from shadowing restricted names
: warning in All ESLint contexts -
no-sparse-arraysDisallow sparse arrays
: warning in All ESLint contexts -
no-this-before-superDisallow
this/superbefore callingsuper()in constructors: warning in JavaScript source, React JavaScript source -
no-unassigned-varsDisallow
letorvarvariables that are read but never assigned: warning in All ESLint contexts -
no-undefDisallow the use of undeclared variables unless mentioned in
/*global */comments: warning in JavaScript source, React JavaScript source -
no-undef-initDisallow initializing variables to
undefined: error in All ESLint contexts -
no-unexpected-multilineDisallow confusing multiline expressions
: warning in All ESLint contexts -
no-unreachableDisallow unreachable code after
return,throw,continue, andbreakstatements: warning in JavaScript source, React JavaScript source -
no-unsafe-finallyDisallow control flow statements in
finallyblocks: warning in All ESLint contexts -
no-unsafe-negationDisallow negating the left operand of relational operators
: warning in JavaScript source, React JavaScript source -
no-unsafe-optional-chainingDisallow use of optional chaining in contexts where the
undefinedvalue is not allowed: warning in All ESLint contexts -
no-unused-labelsDisallow unused labels
: warning in All ESLint contexts -
no-unused-private-class-membersDisallow unused private class members
: warning in All ESLint contexts -
no-useless-assignmentDisallow variable assignments when the value is not used
: warning in All ESLint contexts -
no-useless-backreferenceDisallow useless backreferences in regular expressions
: warning in All ESLint contexts -
no-useless-catchDisallow unnecessary
catchclauses: warning in All ESLint contexts -
no-useless-computed-keyDisallow unnecessary computed property keys in objects and classes
: error in All ESLint contexts -
no-useless-escapeDisallow unnecessary escape characters
: warning in All ESLint contexts -
no-useless-renameDisallow renaming import, export, and destructured assignments to the same name
: error in All ESLint contexts -
no-useless-returnDisallow redundant return statements
: error in All ESLint contexts -
no-varRequire
letorconstinstead ofvar: error in All ESLint contexts -
no-withDisallow
withstatements: warning in JavaScript source, React JavaScript source -
object-shorthandRequire or disallow method and property shorthand syntax for object literals
: error in All ESLint contexts -
prefer-arrow-callbackRequire using arrow functions for callbacks
: error in All ESLint contexts -
prefer-constRequire
constdeclarations for variables that are never reassigned after declared: error in All ESLint contexts