Skip to content

default

const default: object

Defined in: index.ts:6

arrowParens: "always" = "always"

Prettier’s arrowParens: always wrap arrow function parameters in parentheses.

bracketSameLine: false = false

Prettier’s bracketSameLine: off, so the closing > of a multi-line JSX element goes on its own line.

bracketSpacing: true = true

Prettier’s bracketSpacing: print spaces inside object braces.

experimentalTernaries: false = false

Prettier’s experimentalTernaries: off, so the standard ternary formatting is used.

jsxSingleQuote: false = false

Prettier’s jsxSingleQuote: off, so JSX attributes use double quotes.

overrides: ({ files: string[]; options: { printWidth?: undefined; tabWidth: number; useTabs: false; }; } | { files: string[]; options: { printWidth: number; tabWidth?: undefined; useTabs?: undefined; }; })[]

Per-file overrides: two-space indentation for Markdown, MDX, JSON and YAML, and an 80-column width for tsconfig*.json.

printWidth: number = 120

Prettier’s printWidth: lines wrap at 120 columns.

quoteProps: "as-needed" = "as-needed"

Prettier’s quoteProps: quote object properties only where required.

semi: true = true

Prettier’s semi: statements end with a semicolon.

singleQuote: false = false

Prettier’s singleQuote: off, so strings use double quotes.

tabWidth: number = 4

Prettier’s tabWidth: a tab counts as 4 columns.

trailingComma: "es5" = "es5"

Prettier’s trailingComma: es5, so trailing commas go where ES5 allows them (objects and arrays, not function parameters).

useTabs: true = true

Prettier’s useTabs: indent with tabs.

https://prettier.io/docs/en/configuration.html