-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtslint.json
76 lines (76 loc) · 1.94 KB
/
tslint.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
68
69
70
71
72
73
74
75
76
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"linterOptions": {
"exclude": ["node_modules/*.ts", "node_modules/**/*.ts"]
},
"rules": {
"only-arrow-functions": false,
"no-console": false,
"no-bitwise": false,
"jsx-boolean-value": ["never"],
"no-var-requires": false,
"max-classes-per-file": false,
"member-access": [true, "no-public"],
"interface-name": false,
"object-literal-sort-keys": [true, "ignore-case"],
"ordered-imports": [
true,
{
"named-imports-order": "case-insensitive",
"grouped-imports": true,
"groups": [
{
"name": "react",
"match": "^react",
"order": 10
},
{
"name": "testing",
"match": "^@testing-library",
"order": 11
},
{
"name": "external libraries",
"match": "^lodash|classnames|history|^connected-react-router.*|localforage|^redux-persist.*|^reselect.*|^redux.*|^moment.*",
"order": 20
},
{
"name": "@material-ui",
"match": "^@material-ui.*",
"order": 30
},
{
"name": "@components",
"match": "^@components.*",
"order": 40
},
{
"name": "specific routes/components",
"match": "^#.*",
"order": 41
},
{
"name": "@store",
"match": "^.*@store.*",
"order": 50
},
{
"name": "@styles",
"match": "^@styles.*",
"order": 51
},
{
"name": "should be moved to other group!!!",
"match": "^\\w",
"order": 52
},
{
"name": "relative modules",
"match": "^\\.",
"order": 60
}
]
}
]
}
}