Use object property shorthand

MSAL

Simplifies object properties where the property name and value/variable name are the same (e.g., { x: x } becomes { x }). Applies to both destructuring patterns and object literals.

org.openrewrite.javascript.cleanup.use-object-property-shorthand
mod run . --recipe=org.openrewrite.javascript.cleanup.use-object-property-shorthand

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