Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-return-assign

- Disallow assignment operators in return statements

This rule aims to eliminate assignments from return statements. As such, it will warn whenever an assignment is found as part of return.

What ESLint should do when it catches the rule break

Show a warning

Options

except-parens

Rule examples

You can check them out here.