Boolean checks should not be inverted

Proprietary

Replaces inverted boolean comparisons with their simpler equivalents. For example, !(a === b) becomes a !== b and !(a < b) becomes a >= b.

org.openrewrite.javascript.cleanup.BooleanChecksNotInverted
mod run . --recipe=org.openrewrite.javascript.cleanup.BooleanChecksNotInverted

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.