About the Prettier Config Generator
Prettier formats JavaScript, TypeScript, CSS, HTML, JSON and Markdown automatically, but every team has opinions: 80 or 120 characters per line, single or double quotes, semicolons or not, trailing commas everywhere or only where ES5 allows.
Pick your options and get a ready-to-commit configuration as .prettierrc JSON, YAML or a prettier.config.js module with a type annotation for editor autocomplete. Every option uses Prettier’s documented names and values, so the file works as-is with Prettier 3. Add it to your repository root and run npx prettier --write . to format the whole project.
How to use the Prettier Config Generator
- Choose your formatting options.
- Pick JSON, YAML or JavaScript output.
- Copy the config into your project root.
Features
- All common Prettier options
- JSON, YAML or JS
- Prettier 3 option names
- Type hint for autocomplete
Supported formats
- Plain text
Frequently asked questions
Where do I put the file?
In the project root, next to package.json. Prettier finds .prettierrc, .prettierrc.yaml or prettier.config.js automatically.
Is my text sent anywhere?
No. Everything runs in your browser, so nothing you paste is uploaded or stored.
Added · Last reviewed · Maintained by Sohail Khax · How we test tools