Code style issues
- 'var' declared not at the beginning of a function
Checks that declarations of local variables declared with var are at the top of a function scope.
- Chained equality
Reports a chained equality comparison (i.e.
- Chained function call
Reports a function call whose target is another function call, for example, foo().bar().
- Constant on left side of comparison
Reports a comparison operation with a constant value in the left-hand side.
- Constant on right side of comparison
Reports a comparison operation with a constant in the right-hand side.
- Nested function call
Reports a function call that is used as an argument in another function call, for example, foo(bar()).
- Redundant braces around arrow function body
Reports an arrow function whose body only consists of braces and exactly one statement.
- Statement body without braces
Reports a if, while, for, or with statements whose body is not a block statement.
- Undefined property assignment
Reports an assignment to a property that is not defined in the type of a variable.
- Unnecessary parentheses
Reports redundant parentheses.
- Unterminated statement
Reports a statement without a semicolon or a newline at the end.