Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-compare-neg-zero

- Disallow comparing against -0

Recommended

The rule should warn against code that tries to compare against -0, since that will not work as intended. That is, code like x === -0 will pass for both +0 and -0. The author probably intended Object.is(x, -0).

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.