-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
.prettierrc.js
40 lines (37 loc) · 838 Bytes
/
.prettierrc.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
37
38
39
40
module.exports = {
$schema: 'http://json.schemastore.org/prettierrc',
// defaults
arrowParens: 'avoid',
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
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: ['lerna.json', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'],
options: {
parser: 'json-stringify',
tabWidth: 2,
trailingComma: 'none',
},
},
{
files: ['*.yaml', '*.yml'],
options: {
tabWidth: 2,
},
},
],
};