prettierrc.json
2.8.8Schema URL
One of
Definitions
Include parentheses around a sole arrow function parameter.
Put > of opening tags on the last line instead of on a new line.
Print spaces between brackets.
Print (to stderr) where a cursor at the given position would move to after formatting. This option cannot be used with --range-start and --range-end.
Whether parse the .editorconfig file in your project and convert its properties to the corresponding Prettier configuration. This configuration will be overridden by .prettierrc, etc.
Control how 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.
Insert @format pragma into file's first docblock comment.
Use single quotes in JSX.
Which parser to use.
Custom directory that contains prettier plugins in node_modules subdirectory. Overrides default behavior when plugins are searched relatively to the location of Prettier. Multiple values are accepted.
[]
Add a plugin. Multiple plugins can be passed as separate --plugins.
[]
The line length where Prettier will try wrap.
How to wrap prose.
Change when properties in objects are quoted.
Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement. This option cannot be used with --cursor-offset.
Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement. This option cannot be used with --cursor-offset.
Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.
Print semicolons.
Enforce single attribute per line in HTML, Vue and JSX.
Use single quotes instead of double quotes.
Number of spaces per indentation level.
Print trailing commas wherever possible when multi-line.
Indent with tabs instead of spaces.
Indent script and style tags in Vue files.
Provide a list of patterns to override prettier configuration.