← All repos

prettier

Prettier is an opinionated code formatter.

angularastcssflowformattergraphqlhtmljavascriptjsonjsxlessmarkdownprettierprinterscsstypescriptvueyaml
Browse cluster: HTML Parsing & Error Tracking
11,715commits
833contributors
6languages

Tech stack & purpose

Prettier is an opinionated code formatter that enforces consistent style by parsing code and re-printing it with its own rules, wrapping lines as needed based on maximum line length. It supports multiple languages and formats including JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown, and YAML, with extensibility through plugins. The project includes several plugins built on different parser technologies: the Hermes plugin for JavaScript and Flow, the Oxc plugin for JavaScript and TypeScript, and the Yuku plugin also for JavaScript and TypeScript. Prettier can be integrated into editors, pre-commit hooks, and CI environments to maintain consistent code style across development teams.

Languages

JavaScript
98.5%
CSS
0.9%
Vue
0.2%
HTML
0.2%
MDX
0.1%
Shell
0.0%

Contributors (top 30 of 833)