-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
48 lines (48 loc) · 1011 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
41
42
43
44
45
46
47
48
// https://prettier.io/docs/en/options.html
module.exports = {
overrides: [
{
files: ['*.yaml', '*.yml'],
options: {
tabWidth: 4,
printWidth: 88,
singleQuote: true,
},
},
{
files: ['*.md'],
options: {
// There is currently a bug that affects text alignment after the bullet
// points in markdown
// https://github.com/prettier/prettier/issues/5019
tabWidth: 4,
},
},
// https://github.com/NiklasPor/prettier-plugin-go-template
{
files: ['blog/src/layouts/**/*.html'],
options: {
parser: 'go-template',
tabWidth: 4,
printWidth: 88,
},
},
{
files: ['*.json', '*.css'],
options: {
tabWidth: 2,
printWidth: 88,
},
},
{
files: ['*.js'],
options: {
tabWidth: 2,
printWidth: 88,
semi: false,
singleQuote: true,
trailingComma: 'es5',
},
},
],
}