Prefer optional chaining

MSAL

Converts ternary expressions like foo ? foo.bar : undefined to use optional chaining syntax foo?.bar.

org.openrewrite.javascript.cleanup.prefer-optional-chain
mod run . --recipe=org.openrewrite.javascript.cleanup.prefer-optional-chain

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