Prettier
Some data may be outdated — see provenance labels.
Prettier is an opinionated code formatter. observed · 2026-09-25
Health v2 · maintenance only
97/100
- Activity 96
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 3612
- days_rel: 27
- days_push: 26
- n_releases_24m: 30
Adoption not part of the score
52306 stars · 5018 forks observed · 2026-09-25
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-21, confidence 0.99
Prettier is an opinionated code formatter that parses code into an AST and reprints it with consistent style rules. It supports many languages and can be run via CLI, editor plugins, or CI pipelines.
Use cases
- automatically format JavaScript, TypeScript, CSS, HTML, and other files on save
- enforce a consistent code style across a team without manual review
- run Prettier in CI to ensure all code is properly formatted before merging
- integrate Prettier with pre‑commit hooks to format code before committing
- use Prettier plugins to add support for additional languages like PHP, Ruby, or XML
When to choose
- You need a fast, zero‑configuration formatter that works out‑of‑the‑box for many languages
- Your team wants to eliminate style debates and enforce a single style automatically
- You require integration with popular editors, CI systems, and version‑control hooks
- You prefer a stable, widely adopted tool with a large ecosystem of plugins
When to avoid
- You need highly customizable formatting rules that differ from Prettier's opinionated defaults
- Your project relies on language features not yet supported by Prettier or its plugins
- Performance is a critical concern for extremely large codebases where Prettier's parsing overhead may be noticeable
Facets
library · maturity active
formatter developer-tools web-development cross-platform cli code-formatting opinionated plugin-system editor-integration pre-commit nodejs
10 sources
- readme: https://github.com/prettier/prettier · fetched 2026-09-25 · 981a64c5b7a7
- homepage: https://prettier.io · fetched 2026-09-07 · ce22da834241
- site_page: https://prettier.io/docs · fetched 2026-09-07 · ba110f3ac8a9
- site_page: https://prettier.io/docs/next · fetched 2026-09-07 · a9dda9b93d22
- site_page: https://prettier.io/docs/install · fetched 2026-09-07 · 036f1f4d01fe
- site_page: https://prettier.io/docs/option-philosophy · fetched 2026-09-07 · b1a91d809d00
- site_page: https://prettier.io/docs/why-prettier · fetched 2026-09-07 · 0f91299a1551
- site_page: https://prettier.io/docs/plugins · fetched 2026-09-07 · 6e823c5ac1f0
- site_page: https://prettier.io/docs/webstorm · fetched 2026-09-07 · f1e77fed7186
- registry_npm: https://registry.npmjs.org/pretty-quick · fetched 2026-09-07 · 4a1c4820915d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| prettier/prettier | main | 97 |
| prettier/eslint-config-prettier | plugin | 76 |
| prettier/prettier-vscode | plugin | 78 |
| prettier/prettier-eslint | plugin | 95 |
| prettier/eslint-plugin-prettier | plugin | 91 |
| prettier/pretty-quick | plugin | 77 |
| prettier/plugin-php | plugin | 82 |
| prettier/vim-prettier | plugin | 75 |
| prettier/plugin-ruby | plugin | 33 |
| prettier/tslint-config-prettier | plugin | 23 |
| prettier/prettier-atom | plugin | 10 |
| prettier/prettier-eslint-cli | plugin | 92 |
| prettier/plugin-python | plugin | 10 |
| prettier/prettier-emacs | plugin | 66 |
| prettier/stylelint-prettier | plugin | 57 |
| prettier/stylelint-config-prettier | plugin | 10 |
| prettier/plugin-xml | plugin | 75 |
| prettier/plugin-swift | plugin | 10 |
| prettier/tslint-plugin-prettier | plugin | 32 |
| prettier/plugin-pug | plugin | 92 |
| prettier/plugin-lua | plugin | 32 |
For agents
markdown · JSON · MCP: product_card(name="prettier/prettier")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem