-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtslint.json
131 lines (130 loc) · 2.98 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"extends": [
"tslint:recommended",
"tslint-react",
"tslint-config-prettier"
],
"linterOptions": {
"exclude": [
"./client/generated/*.*"
]
},
"defaultSeverity": "error",
"rules": {
"adjacent-overload-signatures": true,
"array-type": [
true,
"generic"
],
"align": [
false
],
"arrow-parens": false,
"class-name": false,
"cyclomatic-complexity": {
"severity": "warning",
"options": 17
},
"comment-format": [
false
],
"curly": true,
"forin": true,
"interface-name": [
true,
"never-prefix"
],
"max-classes-per-file": false,
"member-access": false,
"member-ordering": false,
"no-consecutive-blank-lines": false,
"no-console": false,
"no-empty": false,
"no-inferrable-types": true,
"no-namespace": [
true,
"allow-declarations"
],
"no-parameter-reassignment": true,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-var-requires": false,
"no-empty-interface": false,
"no-default-export": {
"severity": "warning"
},
"no-shadowed-variable": {
"severity": "warning"
},
"object-literal-key-quotes": false,
"object-literal-sort-keys": false,
"only-arrow-functions": [
false
],
"ordered-imports": [
false
],
"quotemark": [
false
],
"trailing-comma": [
false
],
"typedef-whitespace": [
false
],
"variable-name": [
"allow-snake-case"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-rest-spread",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock"
],
// Requires Type Info
"await-promise": true,
"match-default-export-name": false,
"no-boolean-literal-compare": true,
"no-floating-promises": false,
"no-for-in-array": true,
"no-inferred-empty-object-type": false,
"no-unbound-method": false,
"no-unnecessary-qualifier": true,
"no-unnecessary-type-assertion": false, // too many false positives
"no-unsafe-any": false,
"no-unused-variable": true,
"no-use-before-declare": false,
"no-void-expression": false,
"promise-function-async": false,
"restrict-plus-operands": false,
"return-undefined": true,
"strict-boolean-expressions": false,
"deprecation": {
"severity": "warning"
},
"prefer-readonly": true,
"prefer-object-spread": true,
"no-duplicate-variable": true,
"no-duplicate-switch-case": true,
// tslint-react
"jsx-alignment": false,
"jsx-boolean-value": false,
"jsx-curly-spacing": true,
"jsx-equals-spacing": "never",
"jsx-key": true,
"jsx-no-bind": false,
"jsx-no-lambda": false,
"jsx-no-multiline-js": false,
"jsx-no-string-ref": true,
"jsx-self-close": true,
"jsx-wrap-multiline": false
}
}