Rule: no-tautology-expression

Enforces that relational/equality binary operators does not take two equal variables/literals as operands. Expression like 3 === 3, someVar === someVar, “1” > “1” are either a tautology or contradiction, and will produce an error.

Rationale

Clean redundant code and unnecessary comparison of objects and literals.

Config

Not configurable.

Config examples
"no-tautology-expression": true
Schema
null