Overview
Prettier is an opinionated formatter that parses source code and reprints it with its own rules, including maximum line length. It supports JavaScript, TypeScript, CSS, HTML, JSON, Markdown, YAML, and more through plugins.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Apply the same formatting in editors, before commits, and in CI
It prints input into a consistent layout, including wrapping long expressions. Editor save hooks, pre-commit hooks, CI, the CLI, and the API can enforce the result and reduce repetitive style comments in reviews.
Sources: [1]
For automating style decisions across teams and file formats
It fits repositories that want to minimize hand-formatted differences across supported languages. Before formatting an existing codebase wholesale, define directories, ignored files, execution timing, and version pinning, then start with a small diff.
Sources: [1]
Adopt it as an opinionated consistency tool
Prettier deliberately reprints code with its own rules. Check whether each format is handled by core or a plugin, and review formatting separately from static analysis that detects semantic problems.
Official sources
- [1]Prettier README(2026-09-13)
- [2]Prettier GitHub repository(2026-09-13)
Supplemental curator note
Selected for placing supported formats in topics and the README while distributing a badge that generates links from downstream projects.
Growth
Growth trends · Last 30 days
52,253 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 122
- Open PRs
- 271
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- formatter
- printer
- prettier
- ast
- javascript
- flow
- typescript
- css
- scss
- less
- jsx
- vue
- Stars
- 52,253
- Forks
- 4,995
- Watchers
- 450
- Open issues
- 1,159
- Primary language
- JavaScript
- License
- MIT
- Repository last updated
- Sep 13, 2026
Explore next
- React250,401 Stars
A JavaScript library for building web and native user interfaces from declarative components.
JavaScript - Visual Studio Code (Code - OSS)192,456 Stars
The MIT-licensed Code - OSS repository that forms the open foundation of Visual Studio Code.
TypeScript - Flutter178,927 Stars
Google's cross-platform UI SDK for delivering mobile, web, and desktop applications from one Dart codebase.
Dart - Bootstrap174,778 Stars
A responsive, mobile-first web framework built from CSS and JavaScript grids, utilities, and components.
MDX - LangChain146,226 Stars
A Python framework that connects models, tools, retrieval systems, and other components for LLM applications and agents.
Python
Report incorrect information
Tell us if any listing information is incorrect or outdated.