-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathprettier.json
47 lines (42 loc) · 1.03 KB
/
prettier.json
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
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"extends": ["prettier"],
"plugins": ["@stylistic"],
"rules": {
"arrow-body-style": "error",
"curly": "error",
"@stylistic/no-tabs": "error",
"@stylistic/max-len": [
"error",
{
"code": 120,
"comments": 80,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"@stylistic/quotes": [
"error",
"double",
{ "avoidEscape": true, "allowTemplateLiterals": false }
],
"@stylistic/lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"beforeLineComment": true,
"allowBlockStart": true,
"allowObjectStart": true,
"allowArrayStart": true,
"allowClassStart": true,
"afterHashbangComment": true,
"allowEnumStart": true,
"allowInterfaceStart": true,
"allowModuleStart": true,
"allowTypeStart": true
}
]
}
}