Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-self-assign

- Disallow assignments where both sides are exactly the same

Recommended

This rule is aimed at eliminating self assignments.

What ESLint should do when it catches the rule break

Show a warning

Options

props

Warns self-assignments of properties.

Rule examples

You can check them out here.