-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.js
51 lines (51 loc) · 1.14 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
/**
* ref: https://prettier.io/docs/en/configuration.html
* ref: https://prettier.io/docs/en/options.html
*/
module.exports = {
overrides: [
{
files: ['*.html'],
options: {
printWidth: 180,
tabWidth: 2,
//Print semicolons at the ends of statements.
semi: true,
//Print trailing commas wherever possible when multi-line.
//(A single - line array, for example, never gets trailing commas.)
trailingComma: 'none',
bracketSpacing: false,
singleQuote: true
}
},
{
files: ['*.js', '*.prettierrc.js'],
options: {
printWidth: 180,
tabWidth: 2,
semi: true,
trailingComma: 'none',
bracketSpacing: false,
singleQuote: true
}
},
{
files: ['*.css'],
options: {
printWidth: 180,
tabWidth: 2,
bracketSpacing: true,
singleQuote: true
}
},
{
files: ['*.json', '*.code-workspace', '.eslintrc'],
options: {
printWidth: 150,
tabWidth: 2,
trailingComma: 'none',
singleQuote: true
}
}
]
};