Rules
JavaScript
noArguments (since v0.7.0) recommended
Disallow the use ofarguments noAsyncPromiseExecutor (since v0.7.0) recommended
Disallows using an async function as a Promise executor.noCatchAssign (since v0.7.0) recommended
Disallow reassigning exceptions in catch clausesnoCompareNegZero (since v0.7.0) recommended
Disallow comparing against-0 noDeadCode (since v0.7.0)
Disallow unreachable codenoDebugger (since v0.7.0) recommended
Disallow the use ofdebugger noDelete (since v0.7.0) recommended
Disallow the use of thedelete operator noDupeArgs (since v0.9.0) recommended
Disallow duplicate function arguments name.noEmptyPattern (since v0.7.0) recommended
Disallows empty destructuring patterns.noExtraBooleanCast (since v0.9.0) recommended
Disallow unnecessary boolean castsnoFunctionAssign (since v0.7.0) recommended
Disallow reassigning function declarations.noImportAssign (since v0.9.0) recommended
Disallow assigning to imported bindingsnoLabelVar (since v0.7.0) recommended
Disallow labels that share a name with a variablenoNegationElse (since v0.7.0) recommended
Disallow negation in the condition of anif statement if it has an else clause noShadowRestrictedNames (since v0.9.0) recommended
Disallow identifiers from shadowing restricted names.noShoutyConstants (since v0.7.0) recommended
Disallow the use of constants which its value is the upper-case version of its name.noSparseArray (since v0.7.0) recommended
Disallow sparse arraysnoUnnecessaryContinue (since v0.7.0) recommended
Avoid using unnecessaryContinueStatement. noUnsafeNegation (since v0.7.0) recommended
Disallow using unsafe negation.noUnusedTemplateLiteral (since v0.7.0) recommended
Disallow template literals if interpolation and special-character handling are not needednoUnusedVariables (since v0.9.0) recommended
Disallow unused variables.useBlockStatements (since v0.7.0) recommended
Requires following curly brace conventions. JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity.useCamelCase (since v0.8.0)
Enforce camel case naming convention.useSimplifiedLogicExpression (since v0.7.0) recommended
Discard redundant terms from logical expressions.useSingleCaseStatement (since v0.7.0) recommended
Enforces case clauses have a single statement, emits a quick fix wrapping the statements in a blockuseSingleVarDeclarator (since v0.7.0) recommended
Disallow multiple variable declarations in the same variable statementuseTemplate (since v0.7.0) recommended
Template literals are preferred over string concatenation.useValidTypeof (since v0.7.0) recommended
This rule verifies the result oftypeof $expr unary expressions is being compared to valid values, either string literals containing valid type names or other typeof expressions useWhile (since v0.7.0) recommended
Enforce the use ofwhile loops instead of for loops when the initializer and update expressions are not needed JSX
noCommentText (since v0.7.0) recommended
Prevent comments from being inserted as text nodesnoImplicitBoolean (since v0.7.0) recommended
Disallow implicittrue values on JSX boolean attributes useSelfClosingElements (since v0.7.0) recommended
Prevent extra closing tags for components without childrenRegExp
noMultipleSpacesInRegularExpressionLiterals (since v0.7.0) recommended
Disallow unclear usage of multiple space characters in regular expression literalsTypeScript
useShorthandArrayType (since v0.7.0) recommended
When expressing array types, this rule promotes the usage ofT[] shorthand instead of Array<T>.