Simplify boolean literal comparisons
ProprietaryRemoves redundant comparisons against boolean literals. For example, x === true becomes x and x === false becomes !x. Handles both strict (===/!==) and loose (==/!=) equality, where the operand is known to be a boolean.
org. openrewrite. javascript. cleanup. SimplifyBooleanLiteralmod run . --recipe= org. openrewrite. javascript. cleanup. SimplifyBooleanLiteralInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.