Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-self-compare

- Disallow comparisons where both sides are exactly the same

This error is raised to highlight a potentially confusing and potentially pointless piece of code. There are almost no situations in which you would need to compare something to itself.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.