Remove empty named import blocks
ProprietaryRemoves an empty {} named import block from an import that also binds a default or namespace name, so import a, {} from 'm' becomes import a from 'm'. Replicates the autofix of the ESLint rule import-x/no-empty-named-blocks under its default options.
org. openrewrite. javascript. imports. NoEmptyNamedBlocksmod run . --recipe= org. openrewrite. javascript. imports. NoEmptyNamedBlocksInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.