JavaScript
Disallow the use of
arguments Disallows using an async function as a Promise executor.
Disallow reassigning exceptions in catch clauses
Disallow comparing against
-0 Disallow unreachable code
Disallow the use of
debugger Disallow the use of the
delete operator
Require the use of
=== and
!== Disallows empty destructuring patterns.
Disallow reassigning function declarations.
Disallow labels that share a name with a variable
Disallow negation in the condition of an
if statement if it has an
else clause
Disallow the use of constants which its value is the upper-case version of its name.
Avoid using unnecessary
ContinueStatement.
Disallow using unsafe negation.
Disallow template literals if interpolation and special-character handling are not needed
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.
Discard redundant terms from logical expressions.
Enforces case clauses have a single statement, emits a quick fix wrapping the statements in a block
Disallow multiple variable declarations in the same variable statement
Template literals are preferred over string concatenation.
This rule verifies the result of
typeof $expr unary expressions is being compared to valid values, either string literals containing valid type names or other
typeof expressions
Enforce the use of
while loops instead of
for loops when the initializer and update expressions are not needed