-
Notifications
You must be signed in to change notification settings - Fork 12
/
tslint.json
executable file
·41 lines (39 loc) · 1.25 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
{
"extends": [
"tslint:recommended",
"tslint-react",
"tslint-config-prettier"
],
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts",
"coverage/lcov-report/*.js"
]
},
"rules":{
"no-shadowed-variable": false, // 允许接口内使用其他接口
"no-debugger": false,
"no-console": false,
"no-empty-interface":true,
"only-arrow-functions": false, // 允许箭头函数中使用 es5 函数
"interface-name":false, // 接口开头不必用I
//需要按字母顺序引入模块
"ordered-imports": false,
// jsx中匿名函数
"jsx-no-lambda": false,
"no-string-literal":false,
"object-literal-sort-keys": false, // 检查对象文字中键的排序
"no-floating-promises": false, //必须正确处理promise的返回函数
"promise-function-async": false, //要求异步函数返回promise
"no-empty": false,
"no-implicit-dependencies":[false], // 此参数配置alias必须
"no-submodule-imports": [false, "src"],// 次参数配置alias必须
"forin":true,
"variable-name": false, // 后台接口带下划线,不是驼峰格式需关闭
"prefer-for-of":false,
"no-unused-expression": false
},
"jsRules": {
}
}