Optional__Include parentheses around a sole arrow function parameter.
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 (does not apply to self closing elements).
Print spaces between brackets in object literals.
Prettier can allow individual files to opt out of formatting if they contain a special comment, called a pragma, at the top of the file.
Control whether Prettier formats quoted code embedded in the file.
Which end of line characters to apply.
Where to print operators when binary expressions wrap lines.
Use curious ternaries, with the question mark after the condition, instead of on the same line as the consequent.
Specify the input filepath. This will be used to do parser inference.
How to handle whitespaces in HTML.
Prettier can insert a special
OptionaljsxPut the > of a multi-line JSX element at the end of the last line instead of being alone on the next line.
Use single quotes in JSX.
How to wrap object literals.
OptionalparentSpecify which parser to use.
Provide ability to support new languages to prettier.
Specify the line length that the printer will wrap on.
By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer. In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out.
Change when properties in objects are quoted.
Format only a segment of a file.
Format only a segment of a file.
Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier.
Print semicolons at the ends of statements.
Enforce single attribute per line in HTML, Vue and JSX.
Use single quotes instead of double quotes.
Specify the number of spaces per indentation-level.
Print trailing commas wherever possible.
OptionaluseIndent lines with tabs instead of spaces
Whether or not to indent the code inside
Arbitrary additional values on an options object are always allowed.