Experimental Ternaries
Uses a new ternary formatting style that aims to be more readable and consistent. This will likely become the default in future versions.
Experimental Operator Position
Controls where operators are placed when a line breaks (at the start or end of the line).
Print Width
Specifies the line length that the printer will wrap on. Note: This is not a hard limit, but a guideline.
Tab Width
Specifies the number of spaces per indentation-level.
Tabs
Indent lines with tabs instead of spaces.
Semicolons
Print semicolons at the ends of statements.
Quotes
Use single quotes instead of double quotes.
Quote Props
Control when properties in objects are quoted.
JSX Quotes
Use single quotes instead of double quotes in JSX.
Trailing Commas
Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
Bracket Spacing
Print spaces between brackets in object literals.
Object Wrap
Controls how object literals are wrapped when they exceed the print width.
Bracket Line
Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being alone on the next line.
Arrow Function Parentheses
Include parentheses around a sole arrow function parameter.
Range Start
Format only a segment of a file, starting at a given character offset.
Range End
Format only a segment of a file, ending at a given character offset (exclusive).
Parser
Specify which parser to use. Prettier automatically infers this from the file extension, but you can override it.
File Path
Specify the file name to use to infer which parser to use.
Require Pragma
Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file.
Insert Pragma
Insert a special @format marker at the top of files specifying that the file has been formatted with Prettier.
Prose Wrap
How to wrap prose in markdown files (by default, Prettier wraps prose to the print width).
HTML Whitespace Sensitivity
Specify the global whitespace sensitivity for HTML files.
Vue Indent Script and Style
Whether or not to indent the code inside <script> and <style> tags in Vue files.
End of Line
Specify the line ending character to use.
Embedded Language Formatting
Control whether Prettier formats quoted code embedded in the file.
Single Attribute Per Line
Put each attribute on its own line of code in HTML, Vue, and JSX.
Official Plugins
The list of plugins to use by Prettier.