-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc
47 lines (44 loc) · 934 Bytes
/
.prettierrc
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
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
$schema: 'http://json.schemastore.org/prettierrc',
// defaults
arrowParens: 'avoid',
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
jsxBracketSameLine: false,
htmlWhitespaceSensitivity: 'css',
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
semi: true,
useTabs: false,
// customized
endOfLine: 'lf',
printWidth: 100,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
quoteProps: 'consistent',
overrides: [
// explicitly keep output consistent with npm
{
files: [
'.eslintrc.json',
'lerna.json',
'package.json',
'package-lock.json',
'npm-shrinkwrap.json',
],
options: {
parser: 'json-stringify',
tabWidth: 2,
trailingComma: 'none',
},
},
{
files: ['*.yaml', '*.yml'],
options: {
tabWidth: 2,
},
},
],
};