-
Notifications
You must be signed in to change notification settings - Fork 1
/
import-sorter.json
67 lines (67 loc) · 1.4 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
60
61
62
63
64
65
66
67
{
"generalConfiguration": { "sortOnBeforeSave": true },
"importStringConfiguration": {
"maximumNumberOfImportExpressionsPerLine": {
"type": "newLineEachExpressionAfterCountLimitExceptIfOnlyOne",
"count": 120
}
},
"sortConfiguration": {
"customOrderingRules": {
"defaultOrderLevel": 80,
"defaultNumberOfEmptyLinesAfterGroup": 1,
"rules": [
{
"type": "importMember",
"regex": "^$",
"orderLevel": 2
},
{
"regex": "^(prop|styled|react)",
"orderLevel": 5
},
{
"regex": "^(helpers|hooks|actions)/",
"orderLevel": 20
},
{
"regex": "^atoms/",
"orderLevel": 30
},
{
"regex": "^molecules/",
"orderLevel": 35
},
{
"regex": "^organisms/",
"orderLevel": 40
},
{
"regex": "^templates/",
"orderLevel": 45
},
{
"regex": "^pages/",
"orderLevel": 50
},
{
"regex": "^[@]",
"orderLevel": 60
},
{
"regex": "^../",
"orderLevel": 90
},
{
"regex": "^./$",
"orderLevel": 110
},
{
"regex": "^[.]",
"orderLevel": 100
}
]
},
"removeUnusedImports": true
}
}