# Prettier

Prettier is an opinionated code formatter.

Repository: https://github.com/prettier/prettier
Canonical: https://ross.abutalabs.com/products/prettier
Homepage: https://prettier.io
Language: JavaScript
License: MIT
License Family: permissive
Topics: formatter, printer, prettier, ast, javascript, flow, typescript, css, scss, less, jsx, vue, graphql, json, markdown, yaml, html, angular
Last push: 2026-08-26T10:34:00+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 94, longevity 100
- inputs: {"age_days": 3564, "days_push": 7, "days_rel": 43, "gap_med": 5.0, "n_releases_24m": 27}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 52211, forks 4986 (observed 2026-08-28T04:12:12.025976+00:00)

## What it is
Prettier is an opinionated code formatter that parses code and re-prints it with consistent style rules, supporting JavaScript, TypeScript, CSS, HTML, Vue, Angular, GraphQL, Markdown, YAML, and more via plugins. It can run in editors on-save, in pre-commit hooks, or in CI to enforce a uniform codebase style.

## Use cases
- format javascript and typescript code consistently
- enforce code style across a team without manual review comments
- format css, html, vue and angular templates
- run formatting in ci to check style compliance
- format markdown, yaml and json files
- add a pre-commit hook to auto-format staged files
- integrate formatting into vscode on save

## When to choose
- you want zero-config, opinionated formatting across many languages
- your team argues about code style and wants to end the debate
- you need consistent formatting in editors, git hooks, and CI
- you work with mixed web codebases (js, ts, css, html, markdown)

## When to avoid
- you need highly customizable style rules rather than opinionated defaults
- you want a linter that catches bugs, not just formatting
- you only need formatting for a language without a prettier plugin

## Facets
- artifact type: cli-tool
- maturity: stable
- function: formatter, parser, cli, developer-tools, plugin-system
- domain: developer-tools, web-development, frontend, programming-languages
- platform: cli, cross-platform, editor-plugin
- tags: code-style, opinionated-formatting, eslint-integration, editor-integration, pre-commit-hooks, nodejs

## Member repositories
- prettier/prettier (main) score 97
- prettier/eslint-config-prettier (plugin) score 78
- prettier/prettier-vscode (plugin) score 84
- prettier/prettier-eslint (plugin) score 98
- prettier/eslint-plugin-prettier (plugin) score 94
- prettier/pretty-quick (plugin) score 78
- prettier/plugin-php (plugin) score 84
- prettier/vim-prettier (plugin) score 75
- prettier/plugin-ruby (plugin) score 37
- prettier/tslint-config-prettier (plugin) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:12.025976+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:19:35.443825+00:00, confidence not recorded.
  - readme: https://github.com/prettier/prettier (fetched 2026-08-28T04:12:12.025976+00:00, sha 981a64c5b7a7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
