Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-cond-assign

- Disallow assignment operators in conditional expressions

Recommended

This rule disallows ambiguous assignment operators in test conditions of if, for, while, and do...while statements.

What ESLint should do when it catches the rule break

Show a warning

Options

except-parens

Rule examples

You can check them out here.