Prettier
A strong pick. 1st of 13 linters and formatters.
Prettier is the opinionated code formatter that most JavaScript and TypeScript projects use. It covers JS, TS, CSS, HTML, Markdown, YAML, GraphQL and more. It is still a safe, strong pick for a new project. Rust-based formatters with near-identical output, mainly Oxfmt and Biome, are now much faster and growing quicker.
Best for: Teams that want one stable, widely supported formatter across many file types, with plugins and editor support everywhere.
Scores
Overall8.4
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
Prettier is still a strong, low-risk pick for a new project. It has the widest language coverage, plugin support and tool integration, and it is well maintained. It falls short of the top band because Oxfmt and Biome give near-identical JS/TS output at many times the speed, and new projects are moving toward them. Teams that only need JS/TS and care about speed may prefer Oxfmt or Biome.
- npm downloads ratio: 3.1, below the 4.1 median
- oxc.rs/blog/2026-02-24-oxfmt-beta: A fast Prettier-compatible rival
- prettier.io/blog: Active releases through 3.10
- unpkg.com/@epic-web/config@3.1.0/docs/decisions/011-oxfmt-over-prettier.md: Example of a migration away from Prettier, with its trade-offs
GPT-6.2 Sol: 8.8, likely 7.6 to 9.6
Prettier is a strong choice for new projects that want consistent formatting across source, templates, and docs, especially when they already plan to use a dedicated linter. Its release cadence and framework integrations make it a dependable choice for mixed file types. Biome is a strong option when one tool should lint and format, and Oxfmt is attractive when full-repository check time matters most. Those alternatives are growing quickly, which makes Prettier’s lead less certain for new TypeScript projects with straightforward formatting needs.
- prettier.io/blog/2026/11/11/3.10.0: Current stable series updates syntax and fixes formatting across several languages.
- github releasesLastYear, peers, medianDownloadsRatio: Frequent releases alongside slower relative download growth than newer formatter peers.
- github.com/withastro/astro/blob/main/packages/language-tools/language-server/README.md: Current framework integration demonstrates the value of Prettier's plugin ecosystem.
- github.com/microsoft/typespec/issues/11350: A real migration trial shows how much speed can matter alongside file coverage.
- news.ycombinator.com/item?id=43913950: Developers discuss replacing separate ESLint and Prettier steps with Biome and the trade-offs involved.
Needed by many8.8
How many developers need a tool for this job?
Claude Opus 5.5: 8.5, likely 8.0 to 9.0
Almost every JS/TS project benefits from automatic formatting. Prettier also covers CSS, HTML, Markdown and YAML, so it is useful in nearly every repository. It is not a linter, so it covers only half the category's job.
- dependents: 1.7M dependent repos, so it is used in a large share of projects
- 2025.stateofjs.com/en-US/other-tools: State of JS 2025 describes ESLint and Prettier as near-universal
GPT-6.2 Sol: 9.1, likely 8.1 to 9.9
Consistent formatting is useful in most JavaScript and TypeScript projects, and Prettier covers common source, markup, configuration, and documentation formats across frameworks. State of JavaScript 2025 recorded 9,295 Prettier users, which shows broad relevance among respondents. Teams that rely on built-in editor formatting or need fine control over their style have less reason to choose it.
- prettier.io/docs: Built-in support spans source code, templates, styles, configuration, and docs.
- 2025.stateofjs.com/en-US/other-tools: 9,295 respondents reported using Prettier.
- prettier.io/docs/option-philosophy: The project deliberately limits style options.
Helps a lot8.1
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It has the widest language coverage and plugin support of any formatter. Its output is stable and mature, and AI agents know it well. Speed is its clear limit: Oxfmt claims about 30x faster with 100% of Prettier's JS/TS conformance tests passing, and Biome is also far faster. The faster CLI is still experimental. The range is wide because those speed and compatibility figures come mainly from Oxfmt's own maintainers.
- prettier.io/blog: 3.9 brought major parser upgrades and 3.10 new syntax and the Yuku plugin; the 3.6 CLI is still experimental
- oxc.rs/blog/2026-02-24-oxfmt-beta: Oxfmt claims about 30x Prettier's speed with Prettier-compatible JS/TS output
- unpkg.com/@epic-web/config@3.1.0/docs/decisions/011-oxfmt-over-prettier.md: A third party chose Oxfmt for speed but notes Oxfmt lacks Prettier's plugins and its output is not identical
- npm hasTypes: Ships its own types
GPT-6.2 Sol: 8.6, likely 7.5 to 9.5
The stable release handles a wide mix of files, keeps up with new syntax, and exposes a typed API. The documented configuration and `--check` command give developers and coding agents a straightforward way to verify edits, though agent performance has not been measured here. Microsoft's TypeSpec team found Oxfmt much faster in a migration trial with different file coverage, and Prettier leaves bug detection to a linter.
- prettier.io/blog/2026/11/11/3.10.0: The 3.10 series adds syntax support, formatting fixes, and an optional Yuku parser.
- github.com/prettier/prettier/releases/tag/3.10.1: The current stable patch fixes a GraphQL formatting edge case.
- npm hasTypes: The published package ships TypeScript declarations.
- prettier.io/docs/install: Documents editor setup and a formatting check for CI.
- github.com/microsoft/typespec/issues/11350: An independent monorepo trial found a large speed gain with Oxfmt and retained Prettier for part of the workload.
- prettier.io/docs/comparison: Documents the scope of formatting and the role of a separate linter.
Holds up over time8.3
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
The project is very active: 1,498 commits, 23 releases and 872 contributors, with a team that has worked together for years. It is funded through OpenCollective. Prettier 4 has been delayed for a long time, and the ecosystem is starting to move toward Rust formatters that copy its output, which is a risk to its long-term place.
- github commitsLastYear / releasesLastYear: 1,498 commits and 23 releases in the last year
- github latestRelease: 3.10.1 released on 2026-11-12
- prettier.io/blog: Steady minor releases; the faster CLI was promised for 4.0 back in 2024
- infoq.com/news/2026/01/oxfmt-rust-prettier: Rust alternatives are positioned as Prettier replacements
GPT-6.2 Sol: 8.5, likely 7.2 to 9.3
The project recorded 1,498 commits and 23 GitHub releases in the past year, and sponsor funding pays for maintenance. The GraphQL fix in 3.10.1 was merged and released the same day, while the wider issue and pull request backlog remains substantial. Recent releases visibly lean on one lead maintainer, and the number of people who can publish to npm remains unclear. Users report occasional formatting regressions, and the 4.0 milestone adds uncertainty about future upgrade work.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests: 1,498 commits and 23 releases in a year, with 1,142 open issues and 334 open pull requests.
- opencollective.com/prettier/transactions: Shows paid maintenance and recurring support from JetBrains and other sponsors.
- github.com/prettier/prettier/pull/20504: The 3.10.1 GraphQL fix merged on release day.
- github.com/prettier/prettier/releases: Recent GitHub releases repeatedly list the same releaser.
- github.com/prettier/prettier/issues/20199: A user reported changed inline math output after a patch upgrade.
- github.com/prettier/prettier/milestone/42: Tracks changes planned for version 4.0.
Used widely8.9
How many use it, and is that growing?
Claude Opus 5.5: 9.0, likely 8.5 to 9.5
It has 739M downloads in four weeks and 1.7M dependent repos, the largest formatter footprint by far. Its download ratio of 3.1 is below the 4.1 median, so it is losing ground. Oxfmt, Biome and Knip grow much faster from smaller bases.
- npm downloadsLast4Weeks: 739M, against 237M a year ago (ratio 3.1)
- medianDownloadsRatio: The median is 4.1, so Prettier is below it
- dependents: 1.7M repos and 231K packages
- peers Oxfmt downloads: Oxfmt went from 48K to 116M in a year
GPT-6.2 Sol: 8.8, likely 7.8 to 9.8
Ecosyste.ms found 1.70 million dependent repositories and 231,277 dependent npm packages, which puts Prettier near the top of the category even after allowing for indirect use. Four-week downloads reached 739 million, a 3.12× year-over-year increase against the catalog median of 4.1×, so Prettier is losing relative ground on that measure. Biome and Oxfmt grew faster from smaller bases and drew more Bluesky attention. Automated installs, bundled copies, and incomplete dependent counts make the share of new projects choosing each tool hard to pin down.
- dependents repos, packages: 1,703,312 repositories and 231,277 npm packages in the collector's coverage.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 739.1 million versus 236.6 million installs, yielding 3.12× versus a 4.1× median.
- github stars, bluesky posts, peers: 52,440 stars and 11 Bluesky links, versus 98 links for Biome and 84 for the shared Oxc repository.
- 2025.stateofjs.com/en-US/other-tools: Prettier had 9,295 reported users and Biome had 1,762.
- oxc.rs/docs/guide/usage/formatter/language-support: Oxfmt bundles Prettier for some formats, so the tools' use can overlap.
Vouched for8.6
Who stands behind it being good?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
Developer surveys still describe Prettier as near-universal. Most major frameworks, starters and open-source projects use it, and peers measure themselves by how closely they match it. Some well-known setups have moved to Oxfmt or Biome, such as Turborepo and Epic Web's config, which takes a little off current validation.
- 2025.stateofjs.com/en-US/other-tools: Near-universal usage in State of JS 2025
- prettier.io/users: Long list of adopting companies and projects
- dev.to/vishdevwork/oxfmt-the-prettier-compatible-formatter-thats-30x-faster-40jp: Competitors use Prettier conformance as the quality benchmark
GPT-6.2 Sol: 8.7, likely 7.6 to 9.6
Astro uses Prettier in its language tooling, and Tailwind Labs maintains a plugin that applies its recommended class order. Oxfmt still delegates some file formats to bundled Prettier, and Microsoft’s TypeSpec migration trial kept it for some files while finding a faster option for the bulk of its formatting. The evidence is strongest for ecosystem reliance and everyday use. The survey measures usage, leaving satisfaction and retention harder to judge.
- github.com/withastro/astro/blob/main/packages/language-tools/language-server/README.md: Astro uses Prettier to format Astro files and ships it in its VS Code extension.
- github.com/tailwindlabs/prettier-plugin-tailwindcss: Tailwind Labs maintains its recommended class sorting as a Prettier plugin.
- oxc.rs/docs/guide/usage/formatter/language-support: A competing formatter delegates some file types to Prettier.
- github.com/microsoft/typespec/issues/11350: Microsoft's TypeSpec team tested the speed and file coverage trade-offs in its own repository.
- 2025.stateofjs.com/en-US/other-tools: Independent survey reports usage counts for the tool.
Safe8.1
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has zero runtime dependencies, no known advisories and an MIT licence. Its OpenSSF Scorecard is a middling 6.1, with weak scores on Token-Permissions, SAST, Fuzzing and Code-Review. In July 2025, attackers who phished a maintainer published bad versions of the sibling packages eslint-config-prettier and eslint-plugin-prettier. The prettier package itself was not affected.
- npm dependencies: 0 dependencies
- advisories: No advisories
- scorecard: 6.1 overall; Token-Permissions, SAST and Fuzzing score 0
- hackerNews top: July 2025 stories on the compromise of the eslint-config-prettier ecosystem packages
GPT-6.2 Sol: 8.1, likely 6.8 to 9.2
The MIT-licensed npm package installs no separate dependencies, though it bundles parser code. The bundle lists zero OSV advisories, and GitHub records a moderate Markdown denial-of-service issue fixed in 3.9.10 before public disclosure. The July 2025 malware incident affected separately installed ESLint integration packages. Weak Scorecard results for token permissions and review, plus uncertainty about npm publishing access and release signing, keep the range wide.
- npm dependencies, license: Zero separately installed dependencies and a permissive MIT licence.
- advisories total: The collector returned zero OSV advisories for the core package.
- github.com/prettier/prettier/security/advisories/GHSA-4cm8-f57v-mqm6: Documents the bundled Markdown parser issue and identifies 3.9.10 as patched.
- github.com/prettier/prettier/releases/tag/3.9.10: The patch shipped on October 10, one day before the advisory was published.
- github.com/advisories/GHSA-f29h-pxvx-f335: Lists the affected packages, including the separately distributed ESLint config and plugin.
- scorecard score, checks: 6.1 overall, 0 for token permissions, 4 for code review, and no signed-release result.
- github.com/prettier/prettier/wiki/Release-Checklist: Documents a release script and pre-release regression checks.
Good
- It formats more languages than any peer: JS, TS, Flow, JSX, CSS, SCSS, Less, HTML, Vue, Angular, Markdown, YAML, GraphQL and Handlebars.
- It has a large plugin ecosystem (Tailwind, Svelte, Astro, PHP and others), and every editor and CI setup integrates it.
- It installs with zero dependencies, ships its own types and has no known advisories.
- It is actively maintained, with 23 releases in the last year and regular parser and syntax updates.
Bad
- It runs in JavaScript and is much slower than Oxfmt, Biome or dprint on large codebases. The faster CLI is still experimental.
- It only formats. You still need ESLint or another linter, plus glue configuration.
- It is opinionated with few options, so teams that want fine control over style get little of it.
- Its download growth is below the median, while Oxfmt and Biome take new projects with Prettier-compatible output.
The numbers
- npm downloads, 4 weeks
- 739M ×3.1 in a year
- GitHub stars
- 52k
- Commits, 12 months
- 1.5k
- npm version
- 3.10.1 Nov 2026
- Versions, 12 months
- 24
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 6.1 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (prettier/prettier), npm (prettier), OSV and the OpenSSF Scorecard.
Linters and formatters
- 8.4Prettier
- 8.3ESLint
- 8.3Oxlint
- 8.2Stylelint
- 8.2typescript-eslint
- 8.0Biome
- 7.6Knip
- 7.5Oxfmt
- 6.5dprint
- 6.4bun fmt
- 5.7XO
- 5.4bun lint
- 3.2JavaScript Standard Style