-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtslint.json
More file actions
266 lines (266 loc) · 11.4 KB
/
tslint.json
File metadata and controls
266 lines (266 loc) · 11.4 KB
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
256
257
258
259
260
261
262
263
264
265
266
{
"rulesDirectory": [
"node_modules/tslint-eslint-rules/dist/rules",
"node_modules/tslint-microsoft-contrib",
"node_modules/tslint-react/rules"
],
"extends": [
"tslint-eslint-rules",
"tslint-microsoft-contrib",
"tslint-react"
],
"rules": {
"adjacent-overload-signatures": true,
"align": [true, "parameters", "statements"],
"array-bracket-spacing": [true, "never"],
"array-type": [true, "array"],
"arrow-parens": true,
"arrow-return-shorthand": [true],
"await-promise": true,
"ban": [false],
"ban-comma-operator": true,
"ban-types": { "options": [ ["Object", "Avoid using the `Object` type. Did you mean `object`?"], ["Function", "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."], ["Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?"], ["Number", "Avoid using the `Number` type. Did you mean `number`?"], ["String", "Avoid using the `String` type. Did you mean `string`?"], ["Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?"] ] },
"binary-expression-operand-order": true,
"block-spacing": [true, "always"],
"brace-style": [true, "1tbs", { "allowSingleLine": true }],
"callable-types": true,
"chai-prefer-contains-to-index-of": true,
"chai-vague-errors": true,
"class-name": true,
"comment-format": [true, "check-space"],
"completed-docs": [false],
"curly": true,
"cyclomatic-complexity": [false],
"deprecation": true,
"encoding": true,
"eofline": true,
"export-name": false,
"file-header": [false],
"forin": false,
"function-name": [true, { "method-regex": "^[a-z][\\w\\d]+$", "private-method-regex": "^[a-z][\\w\\d]+$", "protected-method-regex": "^[a-z][\\w\\d]+$", "static-method-regex": "^[A-Z_\\d]+$", "function-regex": "^[a-z][\\w\\d]+$" }],
"import-blacklist": true,
"import-name": false,
"import-spacing": true,
"indent": [true, "spaces"],
"informative-docs": true,
"insecure-random": true,
"interface-name": [true, "always-prefix"],
"interface-over-type-literal": true,
"jquery-deferred-must-complete": true,
"jsdoc-format": true,
"jsx-alignment": true,
"jsx-curly-spacing": [true, "never"],
"jsx-no-lambda": false,
"jsx-no-multiline-js": false,
"jsx-no-string-ref": true,
"jsx-self-close": true,
"label-position": true,
"linebreak-style": false,
"match-default-export-name": false,
"max-classes-per-file": [true, 1],
"max-file-line-count": [false],
"max-func-body-length": false,
"max-line-length": [false],
"member-access": [true, "check-accessor", "check-constructor"],
"member-ordering": [true, { "order": ["static-field", "static-method", "constructor", "instance-field", "instance-method"] }],
"missing-jsdoc": false,
"mocha-avoid-only": true,
"mocha-no-side-effect-code": true,
"mocha-unneeded-done": true,
"new-parens": true,
"newline-before-return": false,
"newline-per-chained-call": false,
"no-angle-bracket-type-assertion": true,
"no-any": true,
"no-arg": true,
"no-backbone-get-set-outside-model": true,
"no-banned-terms": true,
"no-bitwise": true,
"no-boolean-literal-compare": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [true, 1],
"no-console": [false],
"no-constant-condition": true,
"no-construct": true,
"no-control-regex": true,
"no-cookies": false,
"no-debugger": true,
"no-default-export": false,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-duplicate-case": true,
"no-duplicate-imports": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-dynamic-delete": true,
"no-empty": true,
"no-empty-character-class": true,
"no-empty-interface": false,
"no-empty-line-after-opening-brace": false,
"no-eval": true,
"no-ex-assign": true,
"no-exec-script": true,
"no-extra-boolean-cast": true,
"no-extra-semi": true,
"no-floating-promises": true,
"no-for-in": false,
"no-function-constructor-with-string-args": true,
"no-function-expression": false,
"no-http-string": false,
"no-implicit-dependencies": [true, "optional"],
"no-import-side-effect": true,
"no-increment-decrement": false,
"no-inferrable-types": [true],
"no-inner-declarations": true,
"no-inner-html": true,
"no-invalid-regexp": true,
"no-invalid-template-strings": true,
"no-irregular-whitespace": true,
"no-for-in-array": true,
"no-inferred-empty-object-type": true,
"no-internal-module": true,
"no-invalid-this": [true, "check-function-in-method"],
"no-jquery-raw-elements": true,
"no-magic-numbers": false,
"no-mergeable-namespace": true,
"no-misused-new": true,
"no-multi-spaces": true,
"no-multiline-string": false,
"no-namespace": [false],
"no-non-null-assertion": true,
"no-null-keyword": true,
"no-object-literal-type-assertion": true,
"no-octal-literal": true,
"no-parameter-properties": true,
"no-parameter-reassignment": false,
"no-redundant-jsdoc": true,
"no-regex-spaces": true,
"no-reference": true,
"no-reference-import": true,
"no-relative-imports": false,
"no-require-imports": false,
"no-reserved-keywords": false,
"no-return-await": true,
"no-shadowed-variable": true,
"no-single-line-block-comment": true,
"no-sparse-arrays": true,
"no-string-based-set-immediate": true,
"no-string-based-set-interval": true,
"no-string-based-set-timeout": true,
"no-string-literal": true,
"no-string-throw": true,
"no-submodule-imports": false,
"no-suspicious-comment": false,
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-trailing-whitespace": true,
"no-typeof-undefined": true,
"no-unbound-method": false,
"no-unexpected-multiline": true,
"no-unexternalized-strings": false,
"no-unnecessary-bind": true,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-class": true,
"no-unnecessary-field-initialization": true,
"no-unnecessary-initializer": true,
"no-unnecessary-local-variable": false,
"no-unnecessary-override": true,
"no-unnecessary-qualifier": false,
"no-unnecessary-semicolons": true,
"no-unnecessary-type-assertion": true,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unsupported-browser-code": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-useless-files": false,
"no-var-keyword": true,
"no-var-requires": false,
"no-void-expression": true,
"no-with-statement": true,
"non-literal-fs-path": true,
"non-literal-require": true,
"number-literal-format": true,
"object-curly-spacing": [true, "always"],
"object-literal-key-quotes": [true, "always"],
"object-literal-shorthand": true,
"object-literal-sort-keys": false,
"one-line": [true, "check-open-brace", "check-catch", "check-else", "check-finally", "check-whitespace"],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"only-arrow-functions": [false],
"ordered-imports": [false],
"possible-timing-attack": false,
"prefer-array-literal": true,
"prefer-conditional-expression": true,
"prefer-const": true,
"prefer-for-of": true,
"prefer-function-over-method": [true, "allow-public", "allow-protected"],
"prefer-method-signature": true,
"prefer-object-spread": false,
"prefer-readonly": false,
"prefer-switch": [true, { "min-cases": 5 }],
"prefer-template": true,
"prefer-type-cast": true,
"prefer-while": true,
"promise-function-async": true,
"promise-must-complete": true,
"quotemark": [true, "double", "jsx-double", "avoid-escape"],
"radix": true,
"react-a11y-anchors": false,
"react-a11y-aria-unsupported-elements": true,
"react-a11y-event-has-role": false,
"react-a11y-image-button-has-alt": true,
"react-a11y-img-has-alt": true,
"react-a11y-input-elements": true,
"react-a11y-lang": true,
"react-a11y-meta": true,
"react-a11y-no-onchange": true,
"react-a11y-props": true,
"react-a11y-proptypes": true,
"react-a11y-required": true,
"react-a11y-role-has-required-aria-props": false,
"react-a11y-role-supports-aria-props": true,
"react-a11y-role": true,
"react-a11y-tabindex-no-positive": true,
"react-a11y-titles": true,
"react-anchor-blank-noopener": true,
"react-iframe-missing-sandbox": true,
"react-no-dangerous-html": false,
"react-this-binding-issue": false,
"react-tsx-curly-spacing": false,
"react-unused-props-and-state": true,
"restrict-plus-operands": true,
"return-undefined": true,
"semicolon": [true, "always"],
"space-before-function-paren": [true, { "anonymous": "never", "named": "never", "asyncArrow": "always", "method": "never", "constructor": "never" }],
"space-in-parens": [true, "never"],
"space-within-parens": true,
"strict-boolean-expressions": false,
"strict-type-predicates": true,
"switch-default": true,
"switch-final-break": [true, "always"],
"ter-arrow-body-style": [true, "always"],
"ter-arrow-parens": [true, "always"],
"ter-arrow-spacing": [true, { "before": true, "after": true }],
"ter-indent": [true, 4, { "SwitchCase": 1 }],
"trailing-comma": [true, { "multiline": "never", "singleline": "never" }],
"triple-equals": [true, "allow-null-check", "allow-undefined-check"],
"type-literal-delimiter": true,
"typedef": [false],
"typedef-whitespace": [true, { "call-signature": "nospace", "index-signature": "nospace", "parameter": "nospace", "property-declaration": "nospace", "variable-declaration": "nospace" }, { "call-signature": "space", "index-signature": "space", "parameter": "space", "property-declaration": "space", "variable-declaration": "space" }],
"underscore-consistent-invocation": [true, { "style": "static" }],
"unified-signatures": true,
"use-default-type-parameter": true,
"use-isnan": true,
"use-named-parameter": true,
"use-simple-attributes": true,
"valid-jsdoc": true,
"valid-typeof": true,
"variable-name": [true, "check-format", "ban-keywords"],
"whitespace": [true, "check-branch", "check-decl", "check-module", "check-operator", "check-separator", "check-type", "check-typecast"]
},
"jsRules": {}
}