← All recipes
Moderne licensed

Auto-format JavaScript/TypeScript code

Recipe IDorg.openrewrite.javascript.format.auto-formatArtifact@openrewrite/rewrite

Format 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-format

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/rewrite