Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-constant-condition

- Disallow constant expressions in conditions

Recommended

This rule disallows constant expressions in the test condition of:.

What ESLint should do when it catches the rule break

Show a warning

Options

checkLoops

Disallows constant expressions in loops.

Rule examples

You can check them out here.