/
tslint.json
39 lines (39 loc) · 1.28 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
{
"defaultSeverity": "error",
"jsRules": {
},
"extends": ["tslint-react"], // npm i tslint-react
"rules": {
"no-var-keyword": true,
"no-arg": true,
"triple-equals": [true, "allow-null-check"], // obj == null is valid
"semicolon": true,
"adjacent-overload-signatures": true,
"await-promise": true,
"callable-types": true,
"deprecation": true,
"jsdoc-format": true,
"no-angle-bracket-type-assertion": true,
"no-duplicate-switch-case": true,
"prefer-const": true,
"prefer-function-over-method": false,
"prefer-object-spread": true,
"prefer-template": true,
"prefer-readonly": true,
"prefer-for-of": true,
"prefer-switch": true,
"no-unnecessary-qualifier": true,
"object-literal-shorthand": true,
"no-shadowed-variable": true,
"no-unnecessary-type-assertion": true,
"no-return-await": true,
"no-floating-promises": true,
"no-inferred-empty-object-type": true,
"strict-type-predicates": false,
"restrict-plus-operands": true,
"jsx-curly-spacing": false,
"jsx-boolean-value": false,
"jsx-no-multiline-js": false
},
"rulesDirectory": []
}