Rule: no-boolean-literal-compare

Warns on comparison to a boolean literal, as in x === true.

Rationale

Comparing boolean values to boolean literals is unnecessary, as those expressions will result in booleans too. Just use the boolean values directly or negate them.

Notes:
TS Only Has Fixer Requires Type Info

Config

Not configurable.

Config examples
"no-boolean-literal-compare": true
Schema
null