-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.prettierrc
70 lines (70 loc) · 1.35 KB
/
.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"trailingComma": "all",
"tabWidth": 2,
"useTabs": false,
"semi": true,
"noSemi": false,
"singleQuote": true,
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"embeddedLanguageFormatting": "auto",
"printWidth": 130,
"proseWrap": "always",
"wrapAttributes": "auto",
"jsxSingleQuote": true,
"jsxBracketSameLine": false,
"jsxSortProps": true,
"quoteProps": "consistent",
"endOfLine": "auto",
"spaceBeforeFunctionParen": true,
"arrayBracketSpacing": true,
"noEmptyLines": true,
"newlineAfterReturn": "always",
"newlineBeforeReturn": "always",
"htmlVoidTags": ["br", "img", "hr"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"options": {
"printWidth": 130,
"tabWidth": 4
}
},
{
"files": "*.scss",
"options": {
"printWidth": 100,
"tabWidth": 4
}
},
{
"files": ["*.json", "*.code-snippets"],
"options": {
"printWidth": 120,
"tabWidth": 4
}
},
{
"files": "*.md",
"options": {
"printWidth": 130,
"tabWidth": 4
}
},
{
"files": "*.txt",
"options": {
"printWidth": 150,
"tabWidth": 4
}
},
{
"files": "*.md",
"options": {
"printWidth": 200,
"tabWidth": 1
}
}
]
}