Remediate autofixable eslint-plugin-import-x findings

Proprietary

Applies every eslint-plugin-import-x autofix remediation in this package, covering the plugin's rules that ship an autofixer and can be reproduced from one file alone. Each sub-recipe replicates the behavior of eslint --fix for one rule under that rule's default options, and is also available to run individually.

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

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

Recipe list

It runs these recipes, in this order.

  1. Move imports above other statements
  2. Replace namespace imports with named imports
  3. Prefer top-level type-only imports over inline type markers
  4. Merge repeated imports of the same module
  5. Remove empty named import blocks