Prefer top-level type-only imports over inline type markers

Proprietary

Replaces inline type markers on named import specifiers with a top-level import type, splitting the statement in two where it also binds values. Replicates the autofix of the ESLint rule import-x/consistent-type-specifier-style under its default option, prefer-top-level.

org.openrewrite.javascript.imports.ConsistentTypeSpecifierStyle
mod run . --recipe=org.openrewrite.javascript.imports.ConsistentTypeSpecifierStyle

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