2 title: no-compare-neg-zero
11 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)`.
13 Examples of **incorrect** code for this rule:
18 /* eslint no-compare-neg-zero: "error" */
27 Examples of **correct** code for this rule:
32 /* eslint no-compare-neg-zero: "error" */
44 /* eslint no-compare-neg-zero: "error" */
46 if (Object.is(x, -0)) {