default
constdefault:object
Defined in: index.ts:6
Type Declaration
Section titled “Type Declaration”arrowParens
Section titled “arrowParens”arrowParens:
"always"="always"
Prettier’s arrowParens: always wrap arrow function parameters in parentheses.
bracketSameLine
Section titled “bracketSameLine”bracketSameLine:
false=false
Prettier’s bracketSameLine: off, so the closing > of a multi-line JSX element goes on its own line.
bracketSpacing
Section titled “bracketSpacing”bracketSpacing:
true=true
Prettier’s bracketSpacing: print spaces inside object braces.
experimentalTernaries
Section titled “experimentalTernaries”experimentalTernaries:
false=false
Prettier’s experimentalTernaries: off, so the standard ternary formatting is used.
jsxSingleQuote
Section titled “jsxSingleQuote”jsxSingleQuote:
false=false
Prettier’s jsxSingleQuote: off, so JSX attributes use double quotes.
overrides
Section titled “overrides”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
Section titled “printWidth”printWidth:
number=120
Prettier’s printWidth: lines wrap at 120 columns.
quoteProps
Section titled “quoteProps”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
Section titled “singleQuote”singleQuote:
false=false
Prettier’s singleQuote: off, so strings use double quotes.
tabWidth
Section titled “tabWidth”tabWidth:
number=4
Prettier’s tabWidth: a tab counts as 4 columns.
trailingComma
Section titled “trailingComma”trailingComma:
"es5"="es5"
Prettier’s trailingComma: es5, so trailing commas go where ES5 allows them (objects and arrays, not function parameters).
useTabs
Section titled “useTabs”useTabs:
true=true
Prettier’s useTabs: indent with tabs.