UNPKG

8.52 kBJSONView Raw
1{
2 "rulesDirectory": [
3 "node_modules/tslint-microsoft-contrib",
4 "dist/src"
5 ],
6 "rules": {
7 "array-type": [
8 true,
9 "array"
10 ],
11 "arrow-return-shorthand": false,
12 "await-promise": false,
13 "adjacent-overload-signatures": false,
14 "align": [
15 false
16 ],
17 "arrow-parens": false,
18 "ban": false,
19 "callable-types": true,
20 "chai-prefer-contains-to-index-of": true,
21 "chai-vague-errors": true,
22 "class-name": true,
23 "comment-format": [
24 false
25 ],
26 "completed-docs": [
27 false
28 ],
29 "curly": true,
30 "cyclomatic-complexity": [
31 false
32 ],
33 "eofline": false,
34 "export-name": true,
35 "file-header": [
36 false
37 ],
38 "forin": true,
39 "function-name": true,
40 "id-length": [
41 true,
42 [
43 "T"
44 ]
45 ],
46 "import-blacklist": false,
47 "import-name": true,
48 "import-spacing": true,
49 "indent": [
50 true,
51 "spaces"
52 ],
53 "insecure-random": true,
54 "interface-name": false,
55 "interface-over-type-literal": false,
56 "jquery-deferred-must-complete": true,
57 "jsdoc-format": false,
58 "label-position": true,
59 "linebreak-style": [
60 true,
61 "LF"
62 ],
63 "max-classes-per-file": [
64 false
65 ],
66 "max-file-line-count": [
67 false
68 ],
69 "max-func-body-length": [
70 true,
71 100,
72 {
73 "ignore-parameters-to-function-regex": "describe"
74 }
75 ],
76 "max-line-length": [
77 true,
78 140
79 ],
80 "max-func-args": [
81 true,
82 3
83 ],
84 "member-access": true,
85 "member-ordering": [
86 false
87 ],
88 "missing-jsdoc": true,
89 "missing-optional-annotation": true,
90 "min-class-cohesion": false,
91 "mocha-avoid-only": true,
92 "mocha-no-side-effect-code": true,
93 "mocha-unneeded-done": true,
94 "new-parens": true,
95 "newspaper-order": true,
96 "no-angle-bracket-type-assertion": false,
97 "no-any": false,
98 "no-arg": true,
99 "no-backbone-get-set-outside-model": true,
100 "no-banned-terms": true,
101 "no-bitwise": true,
102 "no-boolean-literal-compare": false,
103 "no-conditional-assignment": true,
104 "no-consecutive-blank-lines": [
105 true
106 ],
107 "no-console": [
108 true,
109 "debug",
110 "info",
111 "log",
112 "time",
113 "timeEnd",
114 "trace"
115 ],
116 "no-constant-condition": true,
117 "no-construct": true,
118 "no-control-regex": true,
119 "no-cookies": true,
120 "no-debugger": true,
121 "no-default-export": true,
122 "no-delete-expression": true,
123 "no-disable-auto-sanitization": true,
124 "no-document-domain": true,
125 "no-document-write": true,
126 "no-duplicate-case": true,
127 "no-duplicate-parameter-names": true,
128 "no-duplicate-super": true,
129 "no-duplicate-variable": true,
130 "no-empty": true,
131 "no-empty-interface": true,
132 "no-empty-interfaces": true,
133 "no-empty-line-after-opening-brace": false,
134 "no-eval": true,
135 "no-exec-script": true,
136 "no-flag-args": true,
137 "no-floating-promises": false,
138 "no-for-in": true,
139 "no-for-in-array": false,
140 "no-for-each-push": true,
141 "no-function-constructor-with-string-args": true,
142 "no-function-expression": true,
143 "no-http-string": [
144 true,
145 "http://www.example.com/?.*",
146 "http://www.examples.com/?.*"
147 ],
148 "no-import-side-effect": true,
149 "no-increment-decrement": true,
150 "no-inferrable-types": false,
151 "no-inferred-empty-object-type": false,
152 "no-inner-html": true,
153 "no-internal-module": false,
154 "no-invalid-regexp": true,
155 "no-invalid-template-strings": true,
156 "no-invalid-this": true,
157 "no-jquery-raw-elements": true,
158 "no-magic-numbers": false,
159 "no-mergeable-namespace": false,
160 "no-missing-visibility-modifiers": true,
161 "no-misused-new": true,
162 "no-multiline-string": [
163 true
164 ],
165 "no-multiple-var-decl": true,
166 "no-namespace": false,
167 "no-null-keyword": false,
168 "no-octal-literal": true,
169 "no-parameter-properties": false,
170 "no-reference": true,
171 "no-reference-import": true,
172 "no-regex-spaces": true,
173 "no-require-imports": true,
174 "no-reserved-keywords": true,
175 "no-shadowed-variable": true,
176 "no-single-line-block-comment": true,
177 "no-sparse-arrays": true,
178 "no-stateless-class": true,
179 "no-string-based-set-immediate": true,
180 "no-string-based-set-interval": true,
181 "no-string-based-set-timeout": true,
182 "no-string-literal": true,
183 "no-string-throw": true,
184 "no-suspicious-comment": true,
185 "no-switch-case-fall-through": true,
186 "no-trailing-whitespace": true,
187 "no-typeof-undefined": true,
188 "no-unbound-method": false,
189 "no-unnecessary-bind": true,
190 "no-unnecessary-callback-wrapper": true,
191 "no-unnecessary-field-initialization": true,
192 "no-unnecessary-initializer": true,
193 "no-unnecessary-local-variable": true,
194 "no-unnecessary-override": true,
195 "no-unnecessary-qualifier": false,
196 "no-unnecessary-semicolons": true,
197 "no-unsafe-any": false,
198 "no-unsafe-finally": true,
199 "no-unsupported-browser-code": false,
200 "no-unused-expression": true,
201 "no-use-before-declare": true,
202 "no-var-keyword": true,
203 "no-var-requires": true,
204 "no-var-self": true,
205 "no-void-expression": false,
206 "no-with-statement": true,
207 "non-literal-require": true,
208 "object-literal-key-quotes": [
209 true,
210 "as-needed"
211 ],
212 "object-literal-shorthand": false,
213 "object-literal-sort-keys": false,
214 "one-line": [
215 true,
216 "check-open-brace",
217 "check-catch",
218 "check-else",
219 "check-whitespace"
220 ],
221 "one-variable-per-declaration": true,
222 "only-arrow-functions": [
223 true,
224 "allow-declarations",
225 "allow-named-functions"
226 ],
227 "ordered-imports": [
228 false
229 ],
230 "possible-timing-attack": true,
231 "prefer-array-literal": true,
232 "prefer-const": true,
233 "prefer-for-of": false,
234 "prefer-function-over-method": false,
235 "prefer-method-signature": true,
236 "prefer-template": false,
237 "prefer-type-cast": true,
238 "strict-type-predicates": false,
239 "promise-function-async": false,
240 "promise-must-complete": true,
241 "quotemark": [
242 true,
243 "single",
244 "avoid-escape"
245 ],
246 "radix": false,
247 "react-a11y-anchors": true,
248 "react-a11y-aria-unsupported-elements": true,
249 "react-a11y-event-has-role": true,
250 "react-a11y-image-button-has-alt": true,
251 "react-a11y-img-has-alt": true,
252 "react-a11y-lang": true,
253 "react-a11y-meta": true,
254 "react-a11y-props": true,
255 "react-a11y-proptypes": true,
256 "react-a11y-role": true,
257 "react-a11y-role-has-required-aria-props": true,
258 "react-a11y-role-supports-aria-props": true,
259 "react-a11y-tabindex-no-positive": true,
260 "react-a11y-titles": true,
261 "react-anchor-blank-noopener": true,
262 "react-iframe-missing-sandbox": true,
263 "react-no-dangerous-html": true,
264 "react-this-binding-issue": true,
265 "react-tsx-curly-spacing": true,
266 "react-unused-props-and-state": true,
267 "restrict-plus-operands": false,
268 "semicolon": [
269 true,
270 "ignore-bound-class-methods"
271 ],
272 "space-before-function-paren": false,
273 "strict-boolean-expressions": false,
274 "switch-default": false,
275 "trailing-comma": [
276 true,
277 {
278 "singleline": "never",
279 "multiline": {
280 "objects": "always",
281 "arrays": "always",
282 "functions": "always",
283 "imports": "always",
284 "exports": "always",
285 "typeLiterals": "always"
286 }
287 }
288 ],
289 "triple-equals": [
290 true,
291 "allow-null-check"
292 ],
293 "try-catch-first": true,
294 "typedef": [
295 true,
296 "parameter",
297 "property-declaration",
298 "member-variable-declaration"
299 ],
300 "typedef-whitespace": [
301 false
302 ],
303 "typeof-compare": true,
304 "underscore-consistent-invocation": true,
305 "unified-signatures": true,
306 "use-isnan": true,
307 "use-named-parameter": true,
308 "valid-typeof": true,
309 "variable-name": true,
310 "whitespace": [
311 true,
312 "check-branch",
313 "check-decl",
314 "check-operator",
315 "check-separator",
316 "check-type"
317 ],
318 "no-useless-files": true,
319 "no-map-without-usage": true,
320 "no-complex-conditionals": [
321 true,
322 2
323 ],
324 "prefer-dry-conditionals": [
325 true,
326 2
327 ],
328 "no-feature-envy": [
329 true,
330 5,
331 [
332 "_",
333 "ts"
334 ]
335 ],
336 "no-commented-out-code": false
337 }
338}
\No newline at end of file