-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
255 lines (254 loc) · 7.47 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
{
"extends": ["tslint-react"],
"rulesDirectory": [
"node_modules/tslint-eslint-rules/dist/rules"
],
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"no-consecutive-blank-lines": true,
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "always",
"typeLiterals": "always"
}
}
],
"indent": {
"severity": "error",
"options": ["spaces", 2]
},
"ter-indent": [true, 2, {
"SwitchCase": 1
}],
"no-var-keyword": true,
"quotemark": [
true,
"single",
"jsx-double",
"avoid-escape"
],
"semicolon": [
true,
"always",
"ignore-bound-class-methods"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"no-internal-module": true,
"no-trailing-whitespace": true,
"prefer-const": true,
"jsdoc-format": true,
"no-eval": true,
"no-invalid-this": true,
"no-multi-spaces": true,
"ter-no-proto": true,
"ter-no-script-url": true,
"ter-no-self-compare": true,
"no-string-throw": true,
"no-unused-expression": true,
"ter-no-mixed-spaces-and-tabs": true,
"ter-no-tabs": true,
"ter-prefer-arrow-callback": true,
"ter-no-irregular-whitespace": true,
"adjacent-overload-signatures": true,
"member-access": false,
"member-ordering": [true, {"order": "fields-first"}],
"no-any": true,
"no-for-in": true,
"no-import-side-effect": [false, {"ignore-module": "\\.scss$"}],
"no-empty-interface": true,
"no-magic-numbers": false,
"no-non-null-assertion": true,
"no-parameter-reassignment": true,
"no-reference": true,
"no-unnecessary-type-assertion": true,
"no-var-requires": true,
"prefer-for-of": true,
"unified-signatures": true,
"await-promise": true,
"ban-comma-operator": true,
"forin": true,
"function-constructor": true,
"no-arg": true,
"label-position": true,
"no-async-without-await": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-dynamic-delete": true,
"no-floating-promises": false,
"no-for-in-array": true,
"no-implicit-dependencies": true,
"no-invalid-template-strings": true,
"no-misused-new": true,
"no-null-keyword": true,
"no-object-literal-type-assertion": true,
"no-promise-as-boolean": true,
"no-return-await": true,
"no-shadowed-variable": true,
"no-sparse-arrays": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-tautology-expression": true,
"no-this-assignment": true,
"no-unbound-method": false,
"no-unnecessary-class": true,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
"prefer-conditional-expression": true,
"prefer-object-spread": true,
"restrict-plus-operands": true,
"static-this": true,
"triple-equals": true,
"typeof-compare": true,
"unnecessary-constructor": true,
"use-isnan": true,
"invalid-void": true,
"no-duplicate-imports": true,
"no-require-imports": true,
"array-type": [true, "array"],
"arrow-return-shorthand": true,
"no-boolean-literal-compare": true,
"no-unnecessary-callback-wrapper": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": [true, "always"],
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace"],
"one-variable-per-declaration": true,
"ordered-imports": false,
"prefer-function-over-method": false,
"unnecessary-bind": true,
"align": true,
"import-spacing": true,
"max-line-length": [
true,
{
"limit": 140,
"ignore-pattern": "^import |^export {(.*?)} |^\\s*<",
"check-strings": true,
"check-regex": false
}
],
"no-irregular-whitespace": true,
"number-literal-format": true,
"cyclomatic-complexity": [true, 15],
"type-literal-delimiter": true,
"jsx-equals-spacing": true,
"jsx-key": true,
"jsx-no-lambda": false,
"jsx-alignment": false,
"jsx-ban-elements": [true, ["React.Fragment", "Use <></>"]],
"jsx-ban-props": false,
"jsx-boolean-value": false,
"jsx-curly-brace-presence": false,
"jsx-curly-spacing": false,
"jsx-no-bind": {
"severity": "warning"
},
"jsx-no-multiline-js": false,
"jsx-no-string-ref": true,
"jsx-self-close": true,
"jsx-space-before-trailing-slash": true,
"jsx-use-translation-function": false,
"jsx-whitespace-literal": false,
"jsx-wrap-multiline": false,
"react-no-unnecessary-fragment": true,
"arrow-parens": [true, "ban-single-arg-parens"],
"ban": false,
"ban-types": [true, ["Number"], ["String"]],
"binary-expression-operand-order": true,
"callable-types": true,
"completed-docs": false,
"curly": [true, "ignore-same-line"],
"deprecation": false,
"encoding": true,
"eofline": true,
"file-header": false,
"import-blacklist": [true, "prop-types"],
"interface-name": false,
"interface-over-type-literal": false,
"linebreak-style": false,
"match-default-export-name": false,
"max-classes-per-file": [true, 5],
"max-file-line-count": [true, 1000],
"new-parens": true,
"newline-before-return": false,
"newline-per-chained-call": false,
"no-angle-bracket-type-assertion": true,
"no-console": false,
"no-default-export": false,
"no-empty": [true, "allow-empty-catch"],
"no-inferrable-types": true,
"no-inferred-empty-object-type": true,
"no-mergeable-namespace": false,
"no-namespace": false,
"no-parameter-properties": true,
"no-redundant-jsdoc": true,
"no-reference-import": true,
"no-submodule-imports": false,
"no-unnecessary-initializer": true,
"no-unnecessary-qualifier": true,
"no-unused-variable": true,
"no-use-before-declare": false,
"object-literal-sort-keys": false,
"only-arrow-functions": false,
"prefer-method-signature": false,
"prefer-readonly": false,
"prefer-switch": [true, {"min-cases": 3}],
"prefer-template": false,
"prefer-while": true,
"promise-function-async": false,
"radix": false,
"return-undefined": false,
"space-before-function-paren": [true, {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-within-parens": [true, 0],
"strict-boolean-expressions": false,
"strict-type-predicates": false,
"switch-default": false,
"switch-final-break": false,
"typedef": false,
"use-default-type-parameter": true,
"variable-name": {
"options": [
"require-const-for-all-caps",
"allow-pascal-case"
]
}
}
}