-
Notifications
You must be signed in to change notification settings - Fork 1
/
import-sorter.json
59 lines (59 loc) · 1.34 KB
/
import-sorter.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
48
49
50
51
52
53
54
55
56
57
58
59
{
"generalConfiguration": {
"exclude": [".*\\.d\\.ts"],
"sortOnBeforeSave": true
},
"importStringConfiguration": {
"hasSemicolon": true,
"maximumNumberOfImportExpressionsPerLine": {
"count": 120,
"type": "newLineEachExpressionAfterCountLimitExceptIfOnlyOne"
},
"numberOfEmptyLinesAfterAllImports": 1,
"quoteMark": "single",
"spacingPerImportExpression": {
"afterComma": 1,
"afterStartingBracket": 1,
"beforeComma": 0,
"beforeEndingBracket": 1
},
"tabSize": 2,
"tabType": "space",
"trailingComma": "none"
},
"sortConfiguration": {
"importMembers": {
"direction": "asc",
"order": "caseInsensitive"
},
"importPaths": {
"direction": "asc",
"order": "caseInsensitive"
},
"joinImportPaths": true,
"customOrderingRules": {
"defaultNumberOfEmptyLinesAfterGroup": 1,
"defaultOrderLevel": 10,
"disableDefaultOrderSort": false,
"rules": [
{
"type": "importMember",
"orderLevel": 10,
"disableSort": false
},
{
"regex": "^src($|\\/)",
"orderLevel": 20
},
{
"regex": "^[@a-z]",
"orderLevel": 10
},
{
"regex": "^[.]{1,2}($|\\/)",
"orderLevel": 30
}
]
}
}
}