Move imports above other statements
ProprietaryMoves import declarations that appear after other statements to the top of the file, keeping their relative order and leaving any leading directive prologue in place. Replicates the autofix of the ESLint rule import-x/first under its default options.
org. openrewrite. javascript. imports. Firstmod run . --recipe= org. openrewrite. javascript. imports. FirstInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.