-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.js
36 lines (36 loc) · 976 Bytes
/
prettier.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export default {
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
endOfLine: 'lf',
htmlWhitespaceSensitivity: 'css',
overrides: [
{
files: [
'*.{md,toml,yaml,yml}',
'.{editorconfig,env,env.*,gitattributes,gitignore,npmrc,nvmrc}',
],
options: { useTabs: false },
},
],
/*
* Do not set `printWidth`. Prettier’s print width is configured by
* `max_line_length` in `.editorconfig`.
*/
proseWrap: 'preserve',
quoteProps: 'as-needed',
semi: false,
singleAttributePerLine: false,
singleQuote: true,
/*
* Do not set `tabWidth`. Prettier’s tab width is configured by `indent_size`
* or `tab_width` in `.editorconfig`.
*
* Since `.editorconfig` intentionally does not set `indent_size`, and does
* not set `root = true`, you can create your own `.editorconfig` _outside_
* this repo with `tab_width` set to whatever you want.
*/
trailingComma: 'all',
useTabs: true,
}