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

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

Structs

ForDirection

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

GetterReturn

Disallow getter properties which do not always return a value.

NoAsyncPromiseExecutor

Disallow async functions as promise executors.

NoAwaitInLoop

Disallow await inside of loops.

NoCompareNegZero

Disallow comparison against -0 which yields unexpected behavior.

NoCondAssign

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

NoConfusingArrow

Disallow arrow functions where they could be confused with comparisons.

NoConstantCondition

Disallow constant conditions which always yield one result.

NoDebugger

Disallow the use of debugger statements.

NoDupeKeys

Disallow duplicate keys in object literals.

NoDuplicateCases

Disallow duplicate test cases in switch statements.

NoEmpty

Disallow empty block statements.

NoExtraBooleanCast

Disallow unnecessary boolean casts.

NoExtraSemi

Disallow unneeded semicolons.

NoInnerDeclarations

Disallow variable and function declarations in nested blocks.

NoIrregularWhitespace

Disallow weird/irregular whitespace.

NoNewSymbol

Disallow constructing Symbol using new.

NoPrototypeBuiltins

Disallow direct use of Object.prototype builtins directly.

NoSetterReturn

Disallow setters to return values.

NoSparseArrays

Disallow sparse arrays.

NoUnexpectedMultiline

Disallow confusing newlines in expressions.

NoUnsafeFinally

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

NoUnsafeNegation

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

UseIsnan

Disallow incorrect comparisons against NaN.

ValidTypeof

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

Functions

errors

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