1 | {
|
2 | "env": {
|
3 | "browser": true,
|
4 | "es6": true,
|
5 | "mocha": true,
|
6 | "node": true
|
7 | },
|
8 | "globals": {
|
9 | "$config": true,
|
10 | "define": true,
|
11 | "App": true,
|
12 | "__e": true,
|
13 | "__v": true,
|
14 | "__m": true,
|
15 | "__i": true,
|
16 | "__f": true,
|
17 | "__mixin": true,
|
18 | "_": true,
|
19 | "config360": true,
|
20 | "Backbone": true,
|
21 | "$": true
|
22 | },
|
23 | "rules": {
|
24 | "accessor-pairs": [
|
25 | "error"
|
26 | ],
|
27 | "array-bracket-spacing": [
|
28 | "error",
|
29 | "always"
|
30 | ],
|
31 | "array-callback-return": [
|
32 | "error"
|
33 | ],
|
34 | "arrow-body-style": [
|
35 | "off"
|
36 | ],
|
37 | "arrow-parens": [
|
38 | "error",
|
39 | "as-needed"
|
40 | ],
|
41 | "arrow-spacing": [
|
42 | "error",
|
43 | {
|
44 | "after": true,
|
45 | "before": true
|
46 | }
|
47 | ],
|
48 | "block-scoped-var": [
|
49 | "error"
|
50 | ],
|
51 | "block-spacing": [
|
52 | "error"
|
53 | ],
|
54 | "brace-style": [
|
55 | "off",
|
56 | "1tbs",
|
57 | {
|
58 | "allowSingleLine": false
|
59 | }
|
60 | ],
|
61 | "callback-return": [
|
62 | "error"
|
63 | ],
|
64 | "camelcase": [
|
65 | "off",
|
66 | {
|
67 | "properties": "never"
|
68 | }
|
69 | ],
|
70 | "comma-dangle": [
|
71 | "error",
|
72 | "only-multiline"
|
73 | ],
|
74 | "comma-spacing": [
|
75 | "error",
|
76 | {
|
77 | "after": true,
|
78 | "before": false
|
79 | }
|
80 | ],
|
81 | "comma-style": [
|
82 | "error",
|
83 | "last"
|
84 | ],
|
85 | "complexity": [
|
86 | "off"
|
87 | ],
|
88 | "computed-property-spacing": [
|
89 | "error",
|
90 | "never"
|
91 | ],
|
92 | "consistent-return": [
|
93 | "off"
|
94 | ],
|
95 | "consistent-this": [
|
96 | "off"
|
97 | ],
|
98 | "curly": [
|
99 | "error",
|
100 | "all"
|
101 | ],
|
102 | "default-case": [
|
103 | "error"
|
104 | ],
|
105 | "dot-location": [
|
106 | "error",
|
107 | "property"
|
108 | ],
|
109 | "dot-notation": [
|
110 | "off",
|
111 | {
|
112 | "allowKeywords": true
|
113 | }
|
114 | ],
|
115 | "eol-last": [
|
116 | "error"
|
117 | ],
|
118 | "eqeqeq": [
|
119 | "error"
|
120 | ],
|
121 | "func-names": [
|
122 | "off"
|
123 | ],
|
124 | "func-style": [
|
125 | "error",
|
126 | "declaration",
|
127 | {
|
128 | "allowArrowFunctions": true
|
129 | }
|
130 | ],
|
131 | "generator-star-spacing": [
|
132 | "error"
|
133 | ],
|
134 | "global-require": [
|
135 | "off"
|
136 | ],
|
137 | "guard-for-in": [
|
138 | "off"
|
139 | ],
|
140 | "handle-callback-err": [
|
141 | "off"
|
142 | ],
|
143 | "id-blacklist": [
|
144 | "error"
|
145 | ],
|
146 | "id-length": [
|
147 | "off"
|
148 | ],
|
149 | "id-match": [
|
150 | "error"
|
151 | ],
|
152 | "indent": [
|
153 | "error",
|
154 | "tab",
|
155 | {
|
156 | "SwitchCase": 1
|
157 | }
|
158 | ],
|
159 | "init-declarations": [
|
160 | "off"
|
161 | ],
|
162 | "jsx-quotes": [
|
163 | "error"
|
164 | ],
|
165 | "key-spacing": [
|
166 | "off"
|
167 | ],
|
168 | "keyword-spacing": [
|
169 | "error",
|
170 | {
|
171 | "overrides": {
|
172 | "catch": {
|
173 | "after": false
|
174 | }
|
175 | }
|
176 | }
|
177 | ],
|
178 | "linebreak-style": [
|
179 | "error",
|
180 | "unix"
|
181 | ],
|
182 | "lines-around-comment": [
|
183 | "error"
|
184 | ],
|
185 | "max-depth": [
|
186 | "error"
|
187 | ],
|
188 | "max-len": [
|
189 | "error",
|
190 | 200,
|
191 | {
|
192 | "ignoreStrings": true,
|
193 | "ignoreTrailingComments": true
|
194 | }
|
195 | ],
|
196 | "max-nested-callbacks": [
|
197 | "error"
|
198 | ],
|
199 | "max-params": [
|
200 | "off"
|
201 | ],
|
202 | "max-statements": [
|
203 | "off"
|
204 | ],
|
205 | "max-statements-per-line": [
|
206 | "error"
|
207 | ],
|
208 | "new-cap": [
|
209 | "off"
|
210 | ],
|
211 | "new-parens": [
|
212 | "error"
|
213 | ],
|
214 | "newline-after-var": [
|
215 | "off"
|
216 | ],
|
217 | "newline-before-return": [
|
218 | "off"
|
219 | ],
|
220 | "newline-per-chained-call": [
|
221 | "off"
|
222 | ],
|
223 | "no-alert": [
|
224 | "error"
|
225 | ],
|
226 | "no-array-constructor": [
|
227 | "error"
|
228 | ],
|
229 | "no-bitwise": [
|
230 | "off"
|
231 | ],
|
232 | "no-catch-shadow": [
|
233 | "error"
|
234 | ],
|
235 | "no-confusing-arrow": [
|
236 | "error"
|
237 | ],
|
238 | "no-continue": [
|
239 | "error"
|
240 | ],
|
241 | "no-div-regex": [
|
242 | "error"
|
243 | ],
|
244 | "no-duplicate-imports": [
|
245 | "error"
|
246 | ],
|
247 | "no-else-return": [
|
248 | "off"
|
249 | ],
|
250 | "no-empty-function": [
|
251 | "off"
|
252 | ],
|
253 | "no-eq-null": [
|
254 | "error"
|
255 | ],
|
256 | "no-eval": [
|
257 | "error"
|
258 | ],
|
259 | "no-extend-native": [
|
260 | "off"
|
261 | ],
|
262 | "no-extra-bind": [
|
263 | "error"
|
264 | ],
|
265 | "no-extra-label": [
|
266 | "error"
|
267 | ],
|
268 | "no-extra-parens": [
|
269 | "off"
|
270 | ],
|
271 | "no-floating-decimal": [
|
272 | "error"
|
273 | ],
|
274 | "no-implicit-coercion": [
|
275 | "off"
|
276 | ],
|
277 | "no-implicit-globals": [
|
278 | "error"
|
279 | ],
|
280 | "no-implied-eval": [
|
281 | "error"
|
282 | ],
|
283 | "no-inline-comments": [
|
284 | "off"
|
285 | ],
|
286 | "no-invalid-this": [
|
287 | "off"
|
288 | ],
|
289 | "no-iterator": [
|
290 | "error"
|
291 | ],
|
292 | "no-label-var": [
|
293 | "error"
|
294 | ],
|
295 | "no-labels": [
|
296 | "error"
|
297 | ],
|
298 | "no-lone-blocks": [
|
299 | "error"
|
300 | ],
|
301 | "no-lonely-if": [
|
302 | "error"
|
303 | ],
|
304 | "no-loop-func": [
|
305 | "error"
|
306 | ],
|
307 | "no-magic-numbers": [
|
308 | "off"
|
309 | ],
|
310 | "no-mixed-requires": [
|
311 | "off"
|
312 | ],
|
313 | "no-mixed-spaces-and-tabs": [
|
314 | "error"
|
315 | ],
|
316 | "no-multi-spaces": [
|
317 | "off"
|
318 | ],
|
319 | "no-multi-str": [
|
320 | "error"
|
321 | ],
|
322 | "no-multiple-empty-lines": [
|
323 | "error",
|
324 | {
|
325 | "max": 1
|
326 | }
|
327 | ],
|
328 | "no-native-reassign": [
|
329 | "error"
|
330 | ],
|
331 | "no-nested-ternary": [
|
332 | "off"
|
333 | ],
|
334 | "no-new": [
|
335 | "error"
|
336 | ],
|
337 | "no-new-func": [
|
338 | "error"
|
339 | ],
|
340 | "no-new-object": [
|
341 | "error"
|
342 | ],
|
343 | "no-new-require": [
|
344 | "error"
|
345 | ],
|
346 | "no-new-wrappers": [
|
347 | "error"
|
348 | ],
|
349 | "no-param-reassign": [
|
350 | "off"
|
351 | ],
|
352 | "no-path-concat": [
|
353 | "error"
|
354 | ],
|
355 | "no-plusplus": [
|
356 | "off"
|
357 | ],
|
358 | "no-process-env": [
|
359 | "off"
|
360 | ],
|
361 | "no-proto": [
|
362 | "error"
|
363 | ],
|
364 | "no-restricted-globals": [
|
365 | "error"
|
366 | ],
|
367 | "no-restricted-imports": [
|
368 | "error"
|
369 | ],
|
370 | "no-restricted-modules": [
|
371 | "error"
|
372 | ],
|
373 | "no-restricted-syntax": [
|
374 | "error"
|
375 | ],
|
376 | "no-return-assign": [
|
377 | "off"
|
378 | ],
|
379 | "no-script-url": [
|
380 | "error"
|
381 | ],
|
382 | "no-self-compare": [
|
383 | "error"
|
384 | ],
|
385 | "no-sequences": [
|
386 | "error"
|
387 | ],
|
388 | "no-shadow": [
|
389 | "off"
|
390 | ],
|
391 | "no-shadow-restricted-names": [
|
392 | "error"
|
393 | ],
|
394 | "no-spaced-func": [
|
395 | "error"
|
396 | ],
|
397 | "no-sync": [
|
398 | "off"
|
399 | ],
|
400 | "no-ternary": [
|
401 | "off"
|
402 | ],
|
403 | "no-throw-literal": [
|
404 | "error"
|
405 | ],
|
406 | "no-trailing-spaces": [
|
407 | "error"
|
408 | ],
|
409 | "no-undef-init": [
|
410 | "error"
|
411 | ],
|
412 | "no-undefined": [
|
413 | "off"
|
414 | ],
|
415 | "no-underscore-dangle": [
|
416 | "off"
|
417 | ],
|
418 | "no-unmodified-loop-condition": [
|
419 | "error"
|
420 | ],
|
421 | "no-unneeded-ternary": [
|
422 | "error"
|
423 | ],
|
424 | "no-unused-expressions": [
|
425 | "warn",
|
426 | {
|
427 | "allowShortCircuit": true,
|
428 | "allowTernary": true
|
429 | }
|
430 | ],
|
431 | "no-use-before-define": [
|
432 | "off"
|
433 | ],
|
434 | "no-useless-call": [
|
435 | "error"
|
436 | ],
|
437 | "no-useless-concat": [
|
438 | "error"
|
439 | ],
|
440 | "no-useless-constructor": [
|
441 | "error"
|
442 | ],
|
443 | "no-useless-escape": [
|
444 | "error"
|
445 | ],
|
446 | "no-void": [
|
447 | "error"
|
448 | ],
|
449 | "no-warning-comments": [
|
450 | "off"
|
451 | ],
|
452 | "no-whitespace-before-property": [
|
453 | "error"
|
454 | ],
|
455 | "no-with": [
|
456 | "error"
|
457 | ],
|
458 | "object-curly-spacing": [
|
459 | "error",
|
460 | "always"
|
461 | ],
|
462 | "object-shorthand": [
|
463 | "off"
|
464 | ],
|
465 | "one-var": [
|
466 | "off"
|
467 | ],
|
468 | "one-var-declaration-per-line": [
|
469 | "error"
|
470 | ],
|
471 | "operator-assignment": [
|
472 | "error",
|
473 | "always"
|
474 | ],
|
475 | "operator-linebreak": [
|
476 | "warn",
|
477 | "before"
|
478 | ],
|
479 | "padded-blocks": [
|
480 | "off"
|
481 | ],
|
482 | "prefer-arrow-callback": [
|
483 | "off"
|
484 | ],
|
485 | "prefer-const": [
|
486 | "off"
|
487 | ],
|
488 | "prefer-reflect": [
|
489 | "off",
|
490 | {
|
491 | "exceptions": [
|
492 | "call"
|
493 | ]
|
494 | }
|
495 | ],
|
496 | "prefer-rest-params": [
|
497 | "off"
|
498 | ],
|
499 | "prefer-spread": [
|
500 | "off"
|
501 | ],
|
502 | "prefer-template": [
|
503 | "off"
|
504 | ],
|
505 | "quote-props": [
|
506 | "off"
|
507 | ],
|
508 | "quotes": [
|
509 | "error",
|
510 | "single"
|
511 | ],
|
512 | "radix": [
|
513 | "off"
|
514 | ],
|
515 | "require-jsdoc": [
|
516 | "off"
|
517 | ],
|
518 | "require-yield": [
|
519 | "error"
|
520 | ],
|
521 | "semi": [
|
522 | "error"
|
523 | ],
|
524 | "semi-spacing": [
|
525 | "error"
|
526 | ],
|
527 | "sort-imports": [
|
528 | "off"
|
529 | ],
|
530 | "sort-vars": [
|
531 | "off"
|
532 | ],
|
533 | "space-before-blocks": [
|
534 | "error",
|
535 | "always"
|
536 | ],
|
537 | "space-before-function-paren": [
|
538 | "error",
|
539 | {
|
540 | "anonymous": "always",
|
541 | "named": "never"
|
542 | }
|
543 | ],
|
544 | "space-in-parens": [
|
545 | "error",
|
546 | "never"
|
547 | ],
|
548 | "space-infix-ops": [
|
549 | "error"
|
550 | ],
|
551 | "space-unary-ops": [
|
552 | "error",
|
553 | {
|
554 | "nonwords": false,
|
555 | "overrides": {}
|
556 | }
|
557 | ],
|
558 | "spaced-comment": [
|
559 | "error"
|
560 | ],
|
561 | "strict": [
|
562 | "off"
|
563 | ],
|
564 | "template-curly-spacing": [
|
565 | "error"
|
566 | ],
|
567 | "valid-jsdoc": [
|
568 | "error",
|
569 | {
|
570 | "requireParamDescription": false,
|
571 | "requireReturn": false,
|
572 | "requireReturnDescription": false,
|
573 | "requireReturnType": false
|
574 | }
|
575 | ],
|
576 | "vars-on-top": [
|
577 | "warn"
|
578 | ],
|
579 | "wrap-iife": [
|
580 | "error"
|
581 | ],
|
582 | "wrap-regex": [
|
583 | "error"
|
584 | ],
|
585 | "yield-star-spacing": [
|
586 | "error"
|
587 | ],
|
588 | "yoda": [
|
589 | "error"
|
590 | ]
|
591 | }
|
592 | }
|