Merge repeated imports of the same module
ProprietaryMerges the named specifiers of repeated imports of one module into the first of them, keeping type-only imports separate from value imports. Replicates the autofix of the ESLint rule import-x/no-duplicates under its default options.
org. openrewrite. javascript. imports. NoDuplicatesmod run . --recipe= org. openrewrite. javascript. imports. NoDuplicatesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.