Schema URL

Type: object

All of

Definitions

optionsDefinition
arrowParens string

Include parentheses around a sole arrow function parameter.

Default: "avoid"
Values: "avoid" "always"
bracketSpacing boolean

Print spaces between brackets in object literals.

Default: true
insertPragma boolean

Insert @format pragma into file's first docblock comment.

Default: false
jsxBracketSameLine boolean

Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line.

Default: false
parser string

Specify which parser to use.

Default: "babylon"
Values: "babylon" "flow" "typescript" "postcss" "json" "graphql" "markdown"
printWidth integer

Specify the line length that the printer will wrap on.

Default: 80
proseWrap string

How to wrap prose.

Default: "preserve"
Values: "always" "never" "preserve"
requirePragma boolean

Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.

Default: false
semi boolean

Print semicolons at the ends of statements.

Default: true
singleQuote boolean

Use single quotes instead of double quotes.

Default: false
tabWidth integer

Specify the number of spaces per indentation-level.

Default: 2
trailingComma string

Print trailing commas wherever possible.

Default: "none"
Values: "none" "all" "es5"
useTabs boolean

Indent lines with tabs instead of spaces.

Default: false
overridesDefinition
overrides object[]

Provide a list of patterns to override prettier configuration.