Alternatives to Prettier
An opinionated code formatter for JavaScript, TypeScript, CSS, HTML, Markdown and other languages. The listings below can replace it for an important use case. Each note says what changes if you switch.
The original
Prettier
An opinionated code formatter for JavaScript, TypeScript, CSS, HTML, Markdown and other languages.
Replacements
Listings that take over the same core job as Prettier.
Biome
A fast formatter and linter for JavaScript, TypeScript, JSON, CSS, HTML and GraphQL in one tool.
Biome combines a formatter with a linter of over 500 rules in one fast tool, stays close to Prettier output, but some formatting differs and language coverage is narrower.
Also worth comparing
These listings name Prettier as their own alternative, so the relationship runs both ways.
yamlfmt
Format YAML files consistently from the command line.
Prettier is an opinionated MIT-licensed formatter covering many languages beyond YAML, including JavaScript, CSS and Markdown, with few configuration options and wide editor integration.
Similar software
Related functionality, not a direct replacement.
ESLint
A pluggable linter that finds and automatically fixes problems in JavaScript and JSX code.
pre-commit
A command-line framework for managing and running multi-language Git pre-commit hooks across projects.
Ruff
Lint and format Python code with one fast command-line tool.
gofumpt
Apply a stricter, consistent formatting style to Go code.
shfmt
Apply consistent formatting to shell scripts.