Prettier is an opinionated code formatter.
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.