An opinionated code formatter that reprints your code in one consistent style
open sourceMITself-hostablefree
Prettier is an opinionated code formatter for JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown and YAML. It reprints code from its syntax tree in one consistent style with very few options, so teams stop debating formatting in reviews. It runs on save in editors, in pre-commit hooks and as a CI check. MIT licensed.
Ways to install
Package managers
Problems it solves
- code reviews keep turning into arguments about formatting
- format JavaScript and CSS automatically when I save
- make every file in the repo use the same style without configuring a hundred rules
- fail CI when a file isn't formatted
- format Markdown and YAML files consistently too
Features
- opinionated formatting with few options
- many languages
- editor integrations
- --check for CI
- plugins for more languages
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Prettier does.
