Prettier Config Generator
NewBuild a .prettierrc configuration with all common formatting options.
Formatting options
Generate a complete Prettier config as JSON or YAML.
Frequently Asked Questions
Is this generating a full Prettier config or just a common subset?
Just a common subset. It covers options like printWidth, tabWidth, semicolons, single quotes, trailing commas, arrow parens, and endOfLine, but not overrides, plugins, or parser-specific settings.
What is the difference between the JSON and YAML output modes?
They contain the same selected keys, but the serializer changes. JSON is pretty-printed with JSON.stringify, while YAML is built as simple key: value lines.
Does this tool understand advanced .prettierrc YAML features?
No. The YAML mode is intentionally simple and flat. It does not generate comments, overrides arrays, or other richer config structures.
Is printWidth a hard maximum line length?
The generator just writes your chosen number, but Prettier treats printWidth as a preferred wrapping target, not the same thing as ESLint max-len.
What filename does the download button use?
It downloads .prettierrc.json in JSON mode and .prettierrc.yml in YAML mode.