-
Notifications
You must be signed in to change notification settings - Fork 82
/
tslint.json
52 lines (52 loc) · 1.36 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
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-consistent-codestyle",
"tslint-config-prettier",
"tslint-react",
"tslint-react-hooks"
],
"jsRules": {
"object-literal-sort-keys": false
},
"linterOptions": {
"exclude": ["**/_fixtures/**", "**/*.js", "**/*.jsx"]
},
"rules": {
"arrow-return-shorthand": true,
"cyclomatic-complexity": [true, 20],
"interface-name": false,
"interface-over-type-literal": false,
"jsx-no-multiline-js": false,
"jsx-wrap-multiline": false,
"member-access": [false],
"no-any": {
"severity": "off"
},
"no-console": false,
"no-empty": [true, "allow-empty-functions"],
"no-shadowed-variable": true,
"no-unnecessary-else": true,
"no-unnecessary-type-assertion": true,
"no-unsafe-any": {
"severity": "off"
},
"no-var-before-return": true,
"no-var-requires": true,
"object-literal-sort-keys": {
"severity": "off"
},
"one-variable-per-declaration": false,
"ordered-imports": false,
"prefer-conditional-expression": true,
"prefer-const": [true, { "destructuring": "all" }],
"prefer-object-spread": true,
"prefer-readonly": true,
"react-hooks-nesting": "error",
"unnecessary-bind": true,
"unnecessary-else": true,
"variable-name": false
},
"rulesDirectory": []
}