no-self-compare Disallow comparisons with identical deterministic operands Repeating the same deterministic operand on both sides usually indicates that one of the intended values was duplicated. Instead, you SHOULD compare the two intended values or call .isNaN() when testing floating-point NaN. - Category: correctness - Level: warning - Fix: none - Scope: module Reported function changed(value: int32): boolean { return value !== value; } Accepted function changed(left: int32, right: int32): boolean { return left !== right; } Prior art - ESLint ยท no-self-compare language/linter/src/rules/correctness/noselfcompare.rs:6