Module rslint_core::groups::errors[][src]

Expand description

Rules which relate to productions which are almost always erroneous or cause unexpected behavior.

Structs

Verify calls of super() in constructors

Disallow for loops which update their counter in the wrong direction.

Disallow getter properties which do not always return a value.

Disallow async functions as promise executors.

Disallow await inside of loops.

Disallow comparison against -0 which yields unexpected behavior.

Forbid the use of assignment expressions in conditions which may yield unwanted behavior.

Disallow arrow functions where they could be confused with comparisons.

Disallow constant conditions which always yield one result.

Disallow the use of debugger statements.

Disallow duplicate keys in object literals.

Disallow duplicate test cases in switch statements.

Disallow duplicate imports.

Disallow empty block statements.

Disallow unnecessary boolean casts.

Disallow unneeded semicolons.

Disallow variable and function declarations in nested blocks.

Disallow weird/irregular whitespace.

Disallow constructing Symbol using new.

Disallow direct use of Object.prototype builtins directly.

Disallow setters to return values.

Disallow sparse arrays.

Prevent the use of this / super before calling super().

Disallow confusing newlines in expressions.

Forbid the use of unsafe control flow statements in try and catch blocks.

Deny the use of ! on the left hand side of an instanceof or in expression where it is ambiguous.

Disallow incorrect comparisons against NaN.

Enforce the use of valid string literals in a typeof comparison.

Functions

Rules which relate to productions which are almost always erroneous or cause unexpected behavior.