UNPKG

24.1 kBPlain TextView Raw
1# Enable ecmascript 6 features.
2ecmaFeatures:
3 arrowFunctions: false
4 binaryLiterals: false
5 blockBindings: false
6 classes: false
7 defaultParams: false
8 destructuring: false
9 forOf: true
10 generators: false
11 modules: false
12 objectLiteralComputedProperties: false
13 objectLiteralDuplicateProperties: false
14 objectLiteralShorthandMethods: false
15 objectLiteralShorthandProperties: false
16 octalLiterals: false
17 regexUFlag: false
18 regexYFlag: false
19 restParams: true
20 spread: false
21 superInFunctions: false
22 templateStrings: false
23 unicodeCodePointEscapes: false
24 globalReturn: false
25 jsx: true
26 experimentalObjectRestSpread: false
27
28parser: espree
29
30env:
31 browser: true
32 node: true
33 commonjs: false
34 shared-node-browser: true
35 es6: true
36 worker: false
37 amd: true
38 mocha: false
39 jasmine: false
40 jest: false
41 phantomjs: false
42 protractor: false
43 qunit: false
44 jquery: false
45 prototypejs: false
46 shelljs: false
47 meteor: false
48 mongo: false
49 applescript: false
50 serviceworker: true
51 atomtest: false
52 embertest: false
53 webextensions: false
54 greasemonkey: false
55
56globals:
57 $: false
58
59# Linting rules for ESLint.
60# 0's ignore a rule, 1's produce a warning, and 2's throw an error.
61# See http://eslint.org/docs/rules/ for full documentation.
62rules:
63
64 # Rules for flagging POSSIBLE ERRORS.
65
66 # Disallows assignment in conditional expressions.
67 no-cond-assign:
68 - 2
69 - except-parens
70
71 # Enforces flagging use of the console.
72 no-console: 1
73
74 # Disallows use of constant expressions in conditions.
75 no-constant-condition: 2
76
77 # Disallows control characters in regular expressions.
78 no-control-regex: 2
79
80 # Enforces flagging use of the debugger.
81 no-debugger: 2
82
83 # Disallow duplicate arguments in functions.
84 no-dupe-args: 2
85
86 # Disallows duplicate keys when creating object literals.
87 no-dupe-keys: 2
88
89 # Disallow a duplicate case label.
90 no-duplicate-case: 2
91
92 # Disallow the use of empty character classes in regular expressions.
93 no-empty-character-class: 2
94
95 # Disallows empty statements.
96 no-empty: 2
97
98 # Disallows assigning to the exception in a catch block.
99 no-ex-assign: 2
100
101 # Disallows double-negation boolean casts in a boolean context.
102 no-extra-boolean-cast: 2
103
104 # Disallows unnecessary parentheses.
105 no-extra-parens:
106 - 1
107 - all
108
109 # Disallows unnecessary semicolons.
110 no-extra-semi: 2
111
112 # Disallows overwriting functions written as declarations.
113 no-func-assign: 2
114
115 # Disallows function declarations in nested blocks.
116 no-inner-declarations:
117 - 2
118 - functions
119
120 # Disallows invalid regex strings in the RegExp constructor.
121 no-invalid-regexp: 2
122
123 # Disallows irregular whitespace outside of strings and comments.
124 no-irregular-whitespace: 2
125
126 # Disallows negation of the left operand of an in expression.
127 no-negated-in-lhs: 2
128
129 # Disallows use of the global Math and JSON objects as functions.
130 no-obj-calls: 2
131
132 # Disallow use of Object.prototypes builtins directly.
133 no-prototype-builtins: 0
134
135 # Disallows multiple spaces in a regular expression literal.
136 no-regex-spaces: 2
137
138 # Disallows sparse arrays.
139 # Array values should be explicitly defined.
140 no-sparse-arrays: 2
141
142 # Disallow confusing multiline expressions.
143 no-unexpected-multiline: 2
144
145 # Disallows unreachable statements after a return, throw, continue, or break.
146 no-unreachable: 2
147
148 # Disallow control flow statements in finally blocks.
149 no-unsafe-finally: 2
150
151 # Disallows comparisons with the value NaN.
152 use-isnan: 2
153
154 # Enforces valid JSDoc parameters and return types comments.
155 valid-jsdoc:
156 - 2
157 -
158 prefer:
159 return: returns
160 requireReturn: false
161 requireParamDescription: true
162 requireReturnDescription: true
163 requireReturnType: true
164
165 # Enforces that the results of typeof are compared against a valid string.
166 valid-typeof: 2
167
168
169 # Rules for encouraging BEST PRACTICES.
170
171 # Enforces getter/setter pairs in objects.
172 accessor-pairs:
173 - 1
174 -
175 getWithoutSet: false
176
177 # Enforces return statements in callbacks of array's methods.
178 array-callback-return: 2
179
180 # Enforces treating var statements as if they were block scoped.
181 block-scoped-var: 1
182
183 # Enforces specific maximum cyclomatic complexity.
184 complexity:
185 - 1
186 - 4
187
188 # Enforces return statements to either always or never specify values.
189 consistent-return: 2
190
191 # Enforces curly brace conventions for all control statements.
192 curly:
193 - 1
194 - multi-line
195 - consistent
196
197 # Enforces default case in switch statements.
198 default-case: 2
199
200 # Enforces consistent newlines before or after dots.
201 dot-location:
202 - 2
203 - property
204
205 # Enforces use of dot notation whenever possible.
206 # `allowKeywords` = false follows ECMAScript version 3 compatible style.
207 dot-notation:
208 - 2
209 -
210 allowKeywords: false
211 allowPattern: ''
212
213 # Enforces use of === and !== over == and !=.
214 eqeqeq:
215 - 2
216 - smart
217
218 # Enforces necessary if statements in for-in loops.
219 guard-for-in: 1
220
221 # Disallows use of alert, confirm, and prompt.
222 no-alert: 2
223
224 # Disallows use of arguments.caller or arguments.callee.
225 no-caller: 2
226
227 # Disallow lexical declarations in case clauses.
228 no-case-declarations: 2
229
230 # Disallows division operators explicitly at beginning of regex.
231 no-div-regex: 2
232
233 # Disallows else after a return in an if.
234 no-else-return: 2
235
236 # Disallow use of empty functions.
237 no-empty-function: 2
238
239 # Disallow use of empty destructuring patterns.
240 no-empty-pattern: 2
241
242 # Disallows comparisons to null without a type-checking operator.
243 no-eq-null: 2
244
245 # Disallows use of eval().
246 no-eval: 2
247
248 # Disallows adding to native types.
249 no-extend-native: 2
250
251 # Disallows unnecessary function binding.
252 no-extra-bind: 2
253
254 # Disallow unnecessary labels.
255 no-extra-label: 2
256
257 # Disallows fallthrough of case statements.
258 no-fallthrough: 1
259
260 # Disallows use of leading or trailing decimal points in numeric literals.
261 no-floating-decimal: 2
262
263 # Disallow the type conversions with shorter notations.
264 no-implicit-coercion:
265 - 1
266 -
267 boolean: true
268 number: true
269 string: true
270
271 # Disallow var and named functions in global scope.
272 no-implicit-globals: 2
273
274 # Disallows use of eval()-like methods.
275 no-implied-eval: 2
276
277 # Disallow this keyword outside of classes or class-like objects.
278 no-invalid-this: 0
279
280 # Disallows usage of __iterator__ property.
281 no-iterator: 2
282
283 # Disallows use of labeled statements.
284 no-labels: 2
285
286 # Disallows unnecessary nested blocks.
287 no-lone-blocks: 2
288
289 # Disallows creation of functions within loops.
290 no-loop-func: 2
291
292 # Disallow the use of magic numbers.
293 no-magic-numbers:
294 - 0
295 -
296 ignoreArrayIndexes: true
297 enforceConst: true
298 detectObjects: true
299
300 # Disallows use of multiple spaces.
301 no-multi-spaces:
302 - 2
303 -
304 exceptions:
305 BinaryExpression: false
306 Property: true
307
308 # Disallows use of multiline strings with a trailing backslash.
309 # This rule is needed for ECMAScript environments earlier than 5.
310 no-multi-str: 2
311
312 # Disallows reassignments of native objects.
313 no-native-reassign: 2
314
315 # Disallows use of new operator for Function object.
316 no-new-func: 2
317
318 # Disallows creating new instances of String, Number, and Boolean.
319 no-new-wrappers: 2
320
321 # Disallows use of new operator when not part of the assignment or comparison.
322 no-new: 1
323
324 # Disallows use of octal escape sequences in string literals, e.g. "\251".
325 no-octal-escape: 2
326
327 # Disallows use of octal literals.
328 no-octal: 2
329
330 # Disallow reassignment of function parameters.
331 no-param-reassign:
332 - 0
333 -
334 props: false
335
336 # Disallows usage of __proto__ property.
337 no-proto: 2
338
339 # Disallows declaring the same variable more then once.
340 no-redeclare: 2
341
342 # Disallows use of assignment in return statement.
343 no-return-assign:
344 - 2
345 - 'except-parens'
346
347 # Disallows use of javascript: urls.
348 no-script-url: 2
349
350 # Disallow assignments where both sides are exactly the same.
351 no-self-assign: 2
352
353 # Disallows comparisons where both sides are exactly the same.
354 no-self-compare: 2
355
356 # Disallows use of comma operator.
357 no-sequences: 1
358
359 # Restrict what can be thrown as an exception.
360 no-throw-literal: 2
361
362 # Disallow unmodified conditions of loops.
363 no-unmodified-loop-condition: 2
364
365 # Disallows usage of expressions in statement position.
366 no-unused-expressions: 2
367
368 # Disallow unused labels.
369 no-unused-labels: 2
370
371 # Disallow unnecessary .call() and .apply().
372 no-useless-call: 2
373
374 # Disallow unnecessary concatenation of literals or template literals.
375 no-useless-concat: 2
376
377 # Disallow unnecessary escape characters.
378 no-useless-escape: 1
379
380 # Disallows use of void operator.
381 no-void: 2
382
383 # Disallows use of configurable warning terms in comments, e. g. TODO.
384 no-warning-comments:
385 - 1
386 -
387 terms:
388 - '@todo'
389 - todo
390 - fixme
391 - xxx
392 location: start
393
394 # Disallows use of the with statement.
395 no-with: 2
396
397 # Require use of the second argument for parseInt().
398 radix: 2
399
400 # Require all vars on top of their containing scope.
401 vars-on-top: 0
402
403 # Require immediate function invocation to be wrapped in parentheses.
404 wrap-iife:
405 - 2
406 - inside
407
408 # Disallows Yoda conditions.
409 yoda:
410 - 2
411 - never
412 -
413 exceptRange: true
414 onlyEquality: false
415
416
417 # Rules for STRICT MODE.
418
419 # Controls location of Use Strict Directives.
420 # Ensures all function bodies are strict mode code, while global code is not.
421 # Caveat: when run on pre-concatenated code, global mode may look like
422 # function mode after concatenation.
423 strict:
424 - 2
425 - global
426
427
428 # Rules for VARIABLES.
429
430 # Require or disallow initialization in var declarations.
431 init-declarations: 0
432
433 # Disallows the catch clause parameter name being the same as a variable
434 # in the outer scope.
435 # This rule is needed for IE8- support.
436 no-catch-shadow: 2
437
438 # Disallows deletion of variables.
439 no-delete-var: 2
440
441 # Disallows labels that share a name with a variable.
442 no-label-var: 2
443
444 # Disallow specified global variables.
445 no-restricted-globals: 2
446
447 # Disallows shadowing of names such as arguments.
448 no-shadow-restricted-names: 2
449
450 # Disallows declaring variables already declared in the outer scope.
451 no-shadow:
452 - 1
453 -
454 hoist: functions
455
456 # Disallows use of undefined when initializing variables.
457 no-undef-init: 2
458
459 # Disallows use of undeclared vars unless mentioned in a /*global */ block.
460 no-undef:
461 - 2
462 - typeof: true
463
464 # Disallows use of undefined variable.
465 no-undefined: 2
466
467 # Disallows declaration of variables that are not used in the code.
468 no-unused-vars:
469 - 1
470 -
471 vars: all
472 varsIgnorePattern: ''
473 args: after-used
474 argsIgnorePattern: ''
475 caughtErrors: 'none'
476 caughtErrorsIgnorePattern: ''
477
478 # Disallows use of variables before they are defined.
479 no-use-before-define:
480 - 2
481 -
482 functions: false
483 classes: true
484
485
486 # Rules for Node.js and CommonJS.
487
488 # Enforce return after a callback.
489 # callback, cb, and next are possible callback function names.
490 callback-return:
491 - 2
492 -
493 - callback
494 - cb
495 - next
496
497 # Disallow require() outside of the top-level module scope.
498 global-require: 2
499
500 # Enforce error handling in callbacks.
501 # Matches any string that contains err or Err (err, error, anyError, an_err).
502 handle-callback-err:
503 - 2
504 - ^.*(e|E)rr
505
506 # Disallows mixing regular variable and require declarations.
507 # This rule may have inaccurate behavior in Node 0.6- and if UMD is used.
508 no-mixed-requires:
509 - 1
510 -
511 grouping: true
512 allowCall: true
513
514 # Disallows use of new operator with the require function.
515 no-new-require: 2
516
517 # Disallows string concatenation with __dirname and __filename.
518 no-path-concat: 2
519
520 # Disallows use of process.env.
521 # Only applicable to Node.js.
522 no-process-env: 2
523
524 # Disallows use of process.exit().
525 no-process-exit: 1
526
527 # Restrict usage of specific node modules.
528 no-restricted-modules: 0
529
530 # Disallows use of synchronous methods.
531 no-sync: 2
532
533
534 # Rules for STYLISTIC ISSUES.
535 # These rules are purely matters of style and are quite subjective.
536
537 # Enforce spacing inside array brackets.
538 array-bracket-spacing:
539 - 1
540 - always
541
542 # Enforce spacing inside single line blocks.
543 block-spacing:
544 - 2
545 - always
546
547 # Enforce one true brace style.
548 brace-style:
549 - 2
550 - 1tbs
551 -
552 allowSingleLine: true
553
554 # Enforce camel case names.
555 camelcase:
556 - 1
557 -
558 properties: always
559
560 # Consistent use of trailing commas in object and array literals.
561 # This rule is needed for IE8- support.
562 comma-dangle:
563 - 2
564 - never
565
566 # Enforce spacing before and after comma.
567 comma-spacing:
568 - 2
569 -
570 before: false
571 after: true
572
573 # Enforce one true comma style.
574 comma-style:
575 - 2
576 - last
577
578 # Require or disallow padding inside computed properties.
579 computed-property-spacing:
580 - 1
581 - never
582
583 # Enforce consistent naming when capturing the current execution context.
584 # This should be turned on if ESLint supports a regex for the
585 # matching value in the future for the ^[_]?self regex.
586 consistent-this:
587 - 0
588 - 'self'
589
590 # Enforce newline at the end of file, with no multiple empty lines.
591 eol-last:
592 - 2
593 - unix
594
595 # Enforce function expressions not having a name.
596 func-names: 0
597
598 # Enforce use of function declarations or expressions
599 # because of variable hoisting behavior.
600 func-style:
601 - 1
602 - declaration
603 -
604 allowArrowFunctions: true
605
606 # Blacklist certain identifiers to prevent them being used.
607 id-blacklist:
608 - 1
609 - e
610
611 # Enforces min/max identifier lengths (variable names, property names etc.).
612 id-length:
613 - 0
614 -
615 min: 3
616 max: 10
617 properties: never
618 exceptions:
619 - i
620
621 # Require identifiers to match the provided regular expression.
622 id-match:
623 - 0
624 - '^[a-z]+([A-Z][a-z]+)*$'
625 -
626 properties: false
627
628 # Set a specific tab width for your code.
629 indent:
630 - 2
631 - 2
632 -
633 SwitchCase: 1
634 VariableDeclarator:
635 var: 2
636 let: 2
637 const: 3
638
639 # Enforce whether double or single quotes should be used in JSX attributes.
640 jsx-quotes:
641 - 2
642 - prefer-single
643
644 # Enforce spacing between keys and values in object literal properties.
645 key-spacing:
646 - 1
647 -
648 beforeColon: false
649 afterColon: true
650 mode: minimum
651
652 # Enforce consistent spacing among keys/values in object literal properties.
653 keyword-spacing:
654 - 1
655 -
656 before: true
657
658 # Disallow mixed 'LF' and 'CRLF' as linebreaks.
659 linebreak-style:
660 - 2
661 - unix
662
663 # Enforces empty lines around comments.
664 lines-around-comment:
665 - 1
666 -
667 beforeBlockComment: true
668 afterBlockComment: false
669 beforeLineComment: false
670 afterLineComment: false
671 allowBlockStart: false
672 allowBlockEnd: false
673
674 # Specifies maximum depth that blocks can be nested.
675 max-depth:
676 - 1
677 - 5
678
679 # Specifies maximum length of a line in your program.
680 max-len:
681 - 1
682 -
683 code: 80
684 tabWidth: 4
685 comments: 80
686 ignorePattern: ''
687 ignoreTrailingComments: true
688 ignoreUrls: true
689
690 # Enforce a maximum file length.
691 max-lines:
692 - 0
693 -
694 max: 300
695 skipBlankLines: true
696 skipComments: true
697
698 # Specify the maximum depth callbacks can be nested.
699 max-nested-callbacks:
700 - 2
701 - 3
702
703 # Limits number of parameters that can be used in the function declaration.
704 max-params:
705 - 1
706 - 5
707
708 # Enforce a maximum number of statements allowed per line.
709 max-statements-per-line:
710 - 1
711 -
712 max: 2
713
714 # Specifies maximum number of statement allowed in a function.
715 max-statements:
716 - 1
717 - 25
718
719 # Enforce newlines between operands of ternary expressions.
720 multiline-ternary: 0
721
722 # Require a capital letter for constructors.
723 new-cap:
724 - 2
725 -
726 newIsCap: true
727 capIsNew: true
728 newIsCapExceptions: []
729 capIsNewExceptions: []
730
731 # Disallows omission of parentheses when invoking a constructor with no arguments.
732 new-parens: 2
733
734 # Disallow an empty newline after var statement.
735 newline-after-var:
736 - 0
737 - always
738
739 # Require or disallow an empty line after var declarations.
740 newline-before-return:
741 - 0
742
743 # Require a newline after each call in a method chain.
744 newline-per-chained-call:
745 - 0
746 -
747 ignoreChainWithDepth: 2
748
749 # Disallows use of the Array constructor.
750 no-array-constructor: 2
751
752 # Disallows use of bitwise operators.
753 no-bitwise: 0
754
755 # Disallow use of the continue statement.
756 no-continue: 1
757
758 # Disallows inline after code.
759 no-inline-comments: 1
760
761 # Disallows if as the only statement in an else block.
762 no-lonely-if: 2
763
764 # Disallow mixes of different operators.
765 no-mixed-operators: 1
766
767 # Disallows mixed spaces and tabs for indentation.
768 # Include "smart-tabs" option to suppresses warnings tabs used for alignment.
769 no-mixed-spaces-and-tabs: 2
770
771 # Disallows when more than 2 blank lines are used.
772 no-multiple-empty-lines:
773 - 1
774 -
775 max: 2
776 maxEOF: 1
777 maxBOF: 0
778
779 # Disallows negated conditions.
780 no-negated-condition: 2
781
782 # Disallows nested ternary expressions.
783 no-nested-ternary: 2
784
785 # Disallows use of the Object constructor.
786 no-new-object: 2
787
788 # Disallows use of unary operators, ++ and --.
789 no-plusplus: 0
790
791 # Disallow use of certain syntax in code.
792 no-restricted-syntax:
793 - 1
794 - WithStatement
795
796 # Disallows space between function identifier and invocation.
797 no-spaced-func: 2
798
799 # Disallows the use of ternary operators.
800 no-ternary: 0
801
802 # Disallows trailing whitespace at the end of lines.
803 no-trailing-spaces:
804 - 2
805 - skipBlankLines: false
806
807 # Disallows dangling underscores in identifiers.
808 no-underscore-dangle: 0
809
810 # Disallow the use of Boolean literals in conditional expressions.
811 no-unneeded-ternary: 0
812
813 # Disallow whitespace before properties.
814 no-whitespace-before-property: 2
815
816 # Enforce consistent line breaks inside braces.
817 object-curly-newline:
818 - 0
819 -
820 multiline: true
821 minProperties: 3
822
823 # Require or disallow padding inside curly braces.
824 object-curly-spacing:
825 - 1
826 - always
827 -
828 objectsInObjects: false
829 arraysInObjects: false
830
831 # Enforce placing object properties on separate lines.
832 object-property-newline:
833 - 1
834 -
835 allowMultiplePropertiesPerLine: true
836
837 # Require or disallow an newline around variable declarations.
838 one-var-declaration-per-line:
839 - 2
840 - initializations
841
842 # Disallows multiple var statements per function.
843 one-var:
844 - 0
845 - always
846
847 # Requires assignment operator shorthand or prohibit it entirely.
848 operator-assignment:
849 - 2
850 - always
851
852 # Enforce operators to be placed before or after line breaks.
853 operator-linebreak:
854 - 1
855 - after
856
857 # Enforces padding within blocks.
858 padded-blocks:
859 - 0
860 - always
861
862 # Requires quotes around object literal property names.
863 quote-props:
864 - 1
865 - consistent-as-needed
866 -
867 keywords: true
868 unnecessary: true
869 numbers: true
870
871 # Specifies whether double or single quotes should be used.
872 quotes:
873 - 2
874 - single
875 - avoid-escape
876
877 # Require JSDoc comment.
878 require-jsdoc:
879 - 1
880
881 # Disallows space before semicolon.
882 semi-spacing:
883 - 2
884 -
885 before: false
886 after: true
887
888 # Requires or disallows use of semicolons instead of ASI.
889 semi:
890 - 2
891 - always
892
893 # Enforces sorting variables within the same declaration block.
894 sort-vars: 0
895
896 # Requires space before blocks.
897 space-before-blocks:
898 - 2
899 -
900 functions: always
901 keywords: always
902 classes: always
903
904 # Requires space before function parentheses.
905 space-before-function-paren:
906 - 1
907 -
908 anonymous: never
909 named: never
910
911 # Requires spaces inside parentheses.
912 space-in-parens:
913 - 1
914 - always
915
916 # Requires spaces around operators.
917 space-infix-ops:
918 - 2
919 -
920 int32Hint: false
921
922 # Requires spaces before/after unary operators.
923 space-unary-ops:
924 - 2
925 -
926 words: true
927 nonwords: false
928
929 # Require or disallow a space immediately following // or /* in a comment.
930 spaced-comment:
931 - 2
932 - always
933 -
934 line:
935 markers:
936 - '/'
937 exceptions:
938 - '-'
939 - '+'
940 block:
941 markers:
942 - '!'
943 exceptions:
944 - '*'
945
946 # Require or disallow the Unicode BOM.
947 unicode-bom:
948 - 2
949 - never
950
951 # Requires regex literals to be wrapped in parentheses.
952 wrap-regex: 2
953
954
955 # Rules for ECMASCRIPT 6.
956 # These rules are only relevant to ES6 environments.
957
958 # Require braces in arrow function body.
959 arrow-body-style:
960 - 2
961 - as-needed
962
963 # Require parens in arrow function arguments.
964 arrow-parens:
965 - 2
966 - as-needed
967
968 # Require space before/after arrow function's arrow.
969 arrow-spacing:
970 - 2
971 -
972 before: true
973 after: true
974
975 # Verify super() callings in constructors.
976 constructor-super: 2
977
978 # Enforces the position of the * in generator functions.
979 generator-star-spacing:
980 - 2
981 -
982 before: true
983 after: false
984
985 # Disallow modifying variables of class declarations.
986 no-class-assign: 2
987
988 # Disallow arrow functions where they could be confused with comparisons.
989 no-confusing-arrow:
990 - 1
991 -
992 allowParens: true
993
994 # Disallow modifying variables that are declared using const.
995 no-const-assign: 2
996
997 # Disallow duplicate name in class members.
998 no-dupe-class-members: 2
999
1000 # Disallow duplicate module imports.
1001 no-duplicate-imports:
1002 - 2
1003 -
1004 includeExports: true
1005
1006 # Disallow use of the new operator with the Symbol object.
1007 # This rule should not be used in ES3/5 environments.
1008 no-new-symbol: 0
1009
1010 # Restrict usage of specified node imports.
1011 no-restricted-imports: 0
1012
1013 # Disallow to use this/super before super() calling in constructors.
1014 no-this-before-super: 2
1015
1016 # Disallow unnecessary computed property keys in object literals.
1017 no-useless-computed-key: 2
1018
1019 # Disallow unnecessary constructor.
1020 no-useless-constructor: 2
1021
1022 # Disallow renaming import/export/destructured assignments to the same name.
1023 no-useless-rename:
1024 - 2
1025 -
1026 ignoreImport: false
1027 ignoreExport: false
1028 ignoreDestructuring: false
1029
1030 # Requires using let or const instead of var.
1031 # This should be turned on when browser support is better.
1032 no-var: 0
1033
1034 # Require method and property shorthand syntax for object literals.
1035 object-shorthand:
1036 - 0
1037 - always
1038
1039 # Suggest using arrow functions as callbacks.
1040 # Should not be enabled in ES3/5 environments.
1041 prefer-arrow-callback: 0
1042
1043 # Suggest using of const declaration for variables that are never modified.
1044 prefer-const: 1
1045
1046 # Suggest using Reflect methods where applicable.
1047 # Should not be enabled in ES3/5 environments.
1048 prefer-reflect: 0
1049
1050 # Suggest using the rest parameters instead of arguments.
1051 # Should not be enabled in ES3/5 environments.
1052 prefer-rest-params: 0
1053
1054 # Suggest using the spread operator instead of .apply().
1055 # Should not be enabled in ES3/5 environments.
1056 prefer-spread: 0
1057
1058 # Suggest using template literals instead of strings concatenation.
1059 # Should not be enabled in ES3/5 environments.
1060 prefer-template: 0
1061
1062 # Disallow generator functions that do not have yield.
1063 require-yield: 1
1064
1065 # Enforce spacing between rest and spread operators and their expressions.
1066 rest-spread-spacing:
1067 - 2
1068 - never
1069
1070 # Sort import declarations within module.
1071 sort-imports:
1072 - 1
1073 -
1074 ignoreCase: false
1075 ignoreMemberSort: false
1076 memberSyntaxSortOrder:
1077 - none
1078 - all
1079 - multiple
1080 - single
1081
1082 # Enforce spacing around embedded expressions of template strings.
1083 template-curly-spacing:
1084 - 1
1085 - always
1086
1087 # Enforce spacing around the * in yield* expressions.
1088 yield-star-spacing:
1089 - 1
1090 -
1091 before: true
1092 after: false