Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

for-direction

- Enforce “for” loop update clause moving the counter in the right direction

Recommended

A for loop with a stop condition that can never be reached, such as one with a counter that moves in the wrong direction, will run infinitely. While there are occasions when an infinite loop is intended, the convention is to construct such loops as while loops. More typically, an infinite for loop is a bug.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.