
Prettier · Opinionated Code Formatter · Prettier
Opinionated Code Formatter What is Prettier? An opinionated code formatter Supports many languages Integrates with most editors Has few options »
Install · Prettier
prettier --write . is great for formatting everything, but for a big project it might take a little while. You may run prettier --write app/ to format a certain directory, or prettier --write app/components/Button.js to …
What is Prettier? · Prettier
What is Prettier? Prettier is an opinionated code formatter with support for: JavaScript (including experimental features) JSX Angular Vue Flow TypeScript CSS, Less, and SCSS HTML …
Options · Prettier
Options Prettier ships with a handful of format options. To learn more about Prettier’s stance on options – see the Option Philosophy. If you change any options, it’s recommended to do it via a configuration …
Configuration File · Prettier
Prettier intentionally doesn’t support any kind of global configuration. This is to make sure that when a project is copied to another computer, Prettier’s behavior stays the same. Otherwise, Prettier …
Prettier
Test your code formatting with Prettier's online playground, which allows you to experiment with different options and see real-time results.
Pre-commit Hook · Prettier
You can use Prettier with a pre-commit tool. This can re-format your files that are marked as “staged” via git add before you commit.
Editor Integration · Prettier
To get the most out of Prettier, it’s recommended to run it from your editor.
CLI · Prettier
Use the prettier command to run Prettier from the command line.
What is Prettier?
What is Prettier? Prettier is an opinionated code formatter with support for: JavaScript (including experimental features) JSX Angular Vue Flow TypeScript CSS, Less, and SCSS HTML …