Disallow renaming import, export, and destructured assignments to the same name
ProprietaryReplaces 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. NoUselessRenamemod run . --recipe= org. openrewrite. javascript. cleanup. NoUselessRenameInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.