-
Notifications
You must be signed in to change notification settings - Fork 14
/
tslint.json
64 lines (64 loc) · 1.5 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
{
"extends": ["tslint:recommended", "tslint-config-prettier"],
"jsRules": {
"object-literal-sort-keys": [false]
},
"rules": {
"ordered-imports": [
true,
{
"import-sources-order": "lowercase-first",
"module-source-path": "full",
"grouped-imports": true,
"groups": [
{
"match": "^react",
"order": 1
},
{
"match": "^@/(components|containers)",
"order": 31
},
{
"match": "^@/",
"order": 20
},
{
"name": "Parent dir",
"match": "^[.][.]",
"order": 100
},
{
"name": "Current dir",
"match": "^[.]",
"order": 110
},
{
"match": "^[^\\.]",
"order": 10
}
]
}
],
"object-literal-sort-keys": [false],
"arrow-return-shorthand": [true, "multiline"],
"variable-name": {
"options": ["ban-keywords", "check-format", "allow-pascal-case", "allow-leading-underscore"]
},
"no-duplicate-imports": [true],
"no-return-await": true,
"jsx-boolean-value": [false],
"jsx-no-lambda": [false],
"no-default-export": [false],
"member-access": [true, "no-public"],
"file-name-casing": [
true,
{
"index.tsx": "camel-case",
"stories.tsx": "camel-case",
".tsx": "pascal-case",
".ts": "camel-case"
}
]
}
}