Auto-format JavaScript/TypeScript code
Recipe ID
org.openrewrite.javascript.format.auto-formatArtifact@openrewrite/rewriteFormat JavaScript and TypeScript code using formatting rules auto-detected from the project's existing code style.
Single recipeMSAL
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.javascript.format.auto-formatIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/rewrite