Disallow renaming import, export, and destructured assignments to the same name

Proprietary

Replaces redundant name as name import/export specifiers and key: key destructuring properties with the equivalent shorthand form, preserving default values. Replicates the autofix of the ESLint rule no-useless-rename under its default options.

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

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