Inspectopedia 2024.3 Help

Code style issues

'var' declared not at the beginning of a function   New in this release

Checks that declarations of local variables declared with var are at the top of a function scope.

Chained equality   New in this release

Reports a chained equality comparison (i.e.

Chained function call   New in this release

Reports a function call whose target is another function call, for example, foo().bar().

Constant on left side of comparison   New in this release

Reports a comparison operation with a constant value in the left-hand side.

Constant on right side of comparison   New in this release

Reports a comparison operation with a constant in the right-hand side.

Nested function call   New in this release

Reports a function call that is used as an argument in another function call, for example, foo(bar()).

Redundant braces around arrow function body   New in this release

Reports an arrow function whose body only consists of braces and exactly one statement.

Statement body without braces   New in this release

Reports a if, while, for, or with statements whose body is not a block statement.

Undefined property assignment   New in this release

Reports an assignment to a property that is not defined in the type of a variable.

Unnecessary parentheses   New in this release

Reports redundant parentheses.

Unterminated statement   New in this release

Reports a statement without a semicolon or a newline at the end.

Last modified: 11 September 2024