latest--prettierrc
shared| Type | object | string |
|---|---|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/package-json/_shared/latest--prettierrc.json |
| Parent schema | package-json |
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.
Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.
Print (to stderr) where a cursor at the given position would move to after formatting.
Control how 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.
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.
How to wrap object literals.
Which parser to use.
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.
Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement.
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.