Prettier Config Generator
Select options below to generate your .prettierrc
configuration file.
Experimental Ternaries
Use new ternary formatting (future default).
Experimental Operator Position
Control where line-break operators appear.
Print Width
Max line length before wrapping.
Tab Width
Spaces per indentation level.
Tabs
Use tabs instead of spaces.
Semicolons
Add semicolons at line ends.
Quotes
Prefer single over double quotes.
Quote Props
When to quote object properties.
JSX Quotes
Use single quotes in JSX.
Trailing Commas
Add trailing commas in multiline.
Bracket Spacing
Add spaces inside object braces.
Object Wrap
How to wrap object literals.
Bracket Line
Place closing bracket on same line.
Arrow Function Parentheses
Use parentheses around arrow params.
Range Start
Start formatting from character index.
Range End
End formatting at character index.
Parser
Force specific parser to use.
File Path
Used to infer the parser.
Require Pragma
Only format files with @format comment.
Insert Pragma
Add @format comment to output.
Prose Wrap
Wrap markdown text.
HTML Whitespace Sensitivity
Control whitespace in HTML.
Vue Indent Script and Style
Indent `<script>` and `<style>` in Vue.
End of Line
Set line ending character.
Embedded Language Formatting
Format code in template literals.
Single Attribute Per Line
Force single-line attributes in JSX/HTML.
Official Plugins
Use official Prettier plugins.