ESLint core
104 rules oxlint@1.91.0
Complete effective rule inventory.
Rules
No enabled ESLint core rules match this search.
-
no-shadowDisallow variable declarations from shadowing variables declared in the outer scope
: error in All ESLint core contexts -
no-shadow-restricted-namesDisallow identifiers from shadowing restricted names
: warning in All ESLint core contexts -
no-sparse-arraysDisallow sparse arrays
: warning in All ESLint core contexts -
no-template-curly-in-stringDisallow template literal placeholder syntax in regular strings
: warning in All ESLint core 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 core contexts -
no-undefDisallow the use of undeclared variables unless mentioned in
/*global */comments: warning in JavaScript source, React JavaScript source -
no-unexpected-multilineDisallow confusing multiline expressions
: warning in All ESLint core contexts -
no-unmodified-loop-conditionDisallow unmodified loop conditions
: warning in All ESLint core contexts -
no-unreachableDisallow unreachable code after
return,throw,continue, andbreakstatements: warning in JavaScript source, React JavaScript source -
no-unreachable-loopDisallow loops with a body that allows only one iteration
: warning in All ESLint core contexts -
no-unsafe-finallyDisallow control flow statements in
finallyblocks: error in All ESLint core 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: error in All ESLint core contexts -
no-unused-expressionsDisallow unused expressions
: error in All ESLint core contexts -
no-unused-labelsDisallow unused labels
: warning in All ESLint core contexts -
no-unused-private-class-membersDisallow unused private class members
: warning in All ESLint core contexts -
no-unused-varsDisallow unused variables
: error in All ESLint core contexts -
no-useless-assignmentDisallow variable assignments when the value is not used
: warning in All ESLint core contexts -
no-useless-backreferenceDisallow useless backreferences in regular expressions
: warning in All ESLint core contexts -
no-useless-catchDisallow unnecessary
catchclauses: warning in All ESLint core contexts -
no-useless-computed-keyDisallow unnecessary computed property keys in objects and classes
: error in All ESLint core contexts -
no-useless-concatDisallow useless concatenation of literals.
: error in All ESLint core contexts -
no-useless-constructorDisallow unnecessary constructors
: error in All ESLint core contexts -
no-useless-escapeDisallow unnecessary escape characters
: warning in All ESLint core contexts -
no-useless-renameDisallow renaming import, export, and destructured assignments to the same name
: error in All ESLint core contexts -
no-useless-returnDisallow redundant return statements
: error in All ESLint core contexts -
no-varRequire
letorconstinstead ofvar: error in All ESLint core 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 core contexts -
prefer-arrow-callbackRequire using arrow functions for callbacks
: error in All ESLint core contexts -
prefer-constRequire
constdeclarations for variables that are never reassigned after declared: error in All ESLint core contexts