Search for a command to run...
Opinionated code formatter that parses source code and reprints it with a consistent style. Removes original formatting, enforces a single canonical output, and takes line length into account. Focuses solely on formatting, not linting, which keeps configuration minimal and reduces team debates over style.
Widely adopted across the JavaScript and TypeScript ecosystem, often paired with ESLint for combined linting and formatting. The opinionated approach contrasts with config-heavy formatters: few options, consistent output across projects. Sponsors include Vercel, Sentry, and Stripe.
Key capabilities:
Teams use it to enforce consistent formatting across codebases, eliminate style discussions in pull requests, and keep diffs readable. Developers integrate it into editors for format-on-save, into pre-commit hooks to block unformatted code, and into CI pipelines to fail builds when formatting drifts.