Command Palette

Search for a command to run...

position in category
#2

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:

  • Built-in support for JavaScript, TypeScript, JSX, Flow, HTML, CSS, Less, SCSS, JSON, GraphQL, Markdown, MDX, YAML, Angular, Vue, and Ember templates
  • Plugin system for PHP, Ruby, Pug, XML, and community plugins for Java, Kotlin, Go templates, Elm, and others
  • Editor integrations and CI hooks for format-on-save and pre-commit checks
  • Minimal configuration with sensible defaults, reducing style-related discussions
  • Works alongside linters such as ESLint without conflicting

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.

GitHub Repositories
5.1K
-8.1%
Trending down this week
Removed in 451 repos