--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalidComments.js --- # Input ```jsx -0 /** commnet **/ === 4; -0 // comment === 4; 4 === // comment -0 ``` # Diagnostics ``` invalidComments.js:1:1 lint/suspicious/noCompareNegZero FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Do not use the === operator to compare against -0. > 1 │ -0 /** commnet **/ === 4; │ ^^^^^^^^^^^^^^^^^^^^^^^^ 2 │ -0 3 │ // comment i Safe fix: Replace -0 with 0 1 │ -0·/**·commnet·**/·===·4; │ - ``` ``` invalidComments.js:2:1 lint/suspicious/noCompareNegZero FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Do not use the === operator to compare against -0. 1 │ -0 /** commnet **/ === 4; > 2 │ -0 │ ^^ > 3 │ // comment > 4 │ === 4; │ ^^^^^ 5 │ 4 === // comment 6 │ -0 i Safe fix: Replace -0 with 0 2 │ -0 │ - ``` ``` invalidComments.js:5:1 lint/suspicious/noCompareNegZero FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Do not use the === operator to compare against -0. 3 │ // comment 4 │ === 4; > 5 │ 4 === // comment │ ^^^^^^^^^^^^^^^^ > 6 │ -0 │ ^^ i Safe fix: Replace -0 with 0 6 │ -0 │ - ```