no-boolean-literal-compare Disallow comparing boolean values to boolean literals For a boolean operand, comparison with true returns the operand and comparison with false returns its negation. Instead, you SHOULD use the boolean value directly or negate it. - Category: style - Level: warning - Fix: suggestion - Scope: module Reported function active(value: boolean): boolean { return value === true; } Accepted function active(value: boolean): boolean { return value; } Prior art - Clippy · boolcomparison - typescript-eslint · no-unnecessary-boolean-literal-compare language/linter/src/rules/style/nobooleanliteralcompare.rs:8