Print spaces between brackets in object literals.
Control whether Prettier formats quoted code embedded in the file.
Which end of line characters to apply.
Specify the input filepath. This will be used to do parser inference.
How to handle whitespaces in HTML.
Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the --require-pragma option. If there is already a docblock at the top of the file then this option will add a newline to it with the @format marker.
Put 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.
Specify which parser to use.
The plugin API is in a beta state.
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.
Use single quotes instead of double quotes.
Specify the number of spaces per indentation-level.
Print trailing commas wherever possible.
Indent lines with tabs instead of spaces
Whether or not to indent the code inside
Include parentheses around a sole arrow function parameter.
'always'