-
Notifications
You must be signed in to change notification settings - Fork 3
/
tslint.json
42 lines (42 loc) · 915 Bytes
/
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
//https://www.jianshu.com/p/2b409dfc8f75
//https://www.jianshu.com/p/df14afcfdb03
{
"defaultSeverity": "error",
"extend": [
"tslint-config-prettier"
],
// 继承 tslint-config-prettier
"linterOptions": {
"exclude": [
"**/node_modules/**"
]
// 排除 node_modules
},
"jsRules": {
"no-unused-expression": true
},
"rules": {
"interface-name": false,
"promise-function-async": false,
"typedef": {
"options": [
"property-declaration"
]
},
"class-name": true,
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-pascal-case"
]
},
"no-var-keyword": true,
"no-var-requires": false,
"no-any": false,
"no-string-literal": true,
"await-promise": true
},
"rulesDirectory": []
}