no-negation-in-equality-check Disallow negation in equality checks !left === right negates only the left operand, although its visual shape can be read as negating the complete equality check. Instead, you SHOULD parenthesize the intended grouping or use the opposite equality operator. - Category: suspicious - Level: warning - Fix: suggestion - Scope: module Reported function differs(left: boolean, right: boolean): boolean { return !left === right; } Accepted function differs(left: boolean, right: boolean): boolean { return !(left === right); } Prior art - eslint-plugin-unicorn ยท no-negation-in-equality-check language/linter/src/rules/suspicious/nonegationinequalitycheck.rs:7