@@ -16,103 +16,62 @@ ecmaFeatures:
1616
1717rules :
1818 # Possible Errors
19- # list: https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
20- # # Disallow Use of __proto__
21- no-proto : 2
22- # # disallow control characters in regular expressions
19+ # https://github.com/eslint/eslint/tree/master/docs/rules#possible-errors
2320 no-control-regex : 2
24- # # check debugger sentence
2521 no-debugger : 2
26- # # check duplicate arguments
2722 no-dupe-args : 2
28- # # check duplicate object keys
2923 no-dupe-keys : 2
30- # # check duplicate switch-case
3124 no-duplicate-case : 2
32- # # disallow the use of empty character classes in regular expressions
3325 no-empty-character-class : 2
34- # # disallow assignment of exceptional params
3526 no-ex-assign : 2
36- # # disallow extra boolean casts
3727 no-extra-boolean-cast : 2
38- # # disallow superfluous semicolons
3928 no-extra-semi : 2
40- # # validate regular expressions
4129 no-invalid-regexp : 2
42- # # forbid weird whitespace characters
4330 no-irregular-whitespace : 2
44- # # avoid unexpected multiline expressions
31+ no-proto : 2
4532 no-unexpected-multiline : 2
46- # # disallow unreachable code
4733 no-unreachable : 2
48- # # require valid typeof compared string like typeof foo === 'strnig'
4934 valid-typeof : 2
5035
5136 # Best Practices
52- # list: https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
53- # # require falls through comment on switch-case
37+ # https://github.com/eslint/eslint/tree/master/docs/rules#best-practices
5438 no-fallthrough : 2
55- # # disallow declaring the same variable more than once
5639 no-redeclare : 2
5740
5841 # Stylistic Issues
59- # list: https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
60- # # add space after comma
42+ # https://github.com/eslint/eslint/tree/master/docs/rules#stylistic-issues
6143 comma-spacing : 2
62- # # require newline at end of files
6344 eol-last : 2
64- # # 2 space indentation
6545 indent : [2, 2, {SwitchCase: 1}]
66- # # max 80 length
6746 max-len : [2, 80, 2]
68- # # require parens for Constructor
6947 new-parens : 2
70- # # disallow mixed spaces and tabs for indentation
7148 no-mixed-spaces-and-tabs : 2
72- # # max 2 consecutive empty lines
7349 no-multiple-empty-lines : [2, {max: 2}]
74- # # no trailing spaces
7550 no-trailing-spaces : 2
76- # # use single quote, we can use double quote when escape chars
7751 quotes : [2, "single", "avoid-escape"]
78- # # put semi-colon
7952 semi : 2
80- # # require space after keywords, eg 'for (..)'
8153 space-after-keywords : 2
82- # # require space before blocks, eg 'function() {'
8354 space-before-blocks : [2, "always"]
84- # # no space before function, eg. 'function()'
8555 space-before-function-paren : [2, "never"]
86- # # no leading/trailing spaces in parens
8756 space-in-parens : [2, "never"]
88- # # require spaces operator like var sum = 1 + 1;
8957 space-infix-ops : 2
90- # # require spaces return, throw, case
9158 space-return-throw-case : 2
92- # # no spaces with non-word unary operators, require for word unary operators
9359 space-unary-ops : 2
9460
9561 # ECMAScript 6
96- # list: http://eslint.org/docs/rules/#ecmascript-6
97- # # Suggest using 'const' wherever possible
98- prefer-const : 2
99- # # Enforce parens around arrow function arguments
62+ # http://eslint.org/docs/rules/#ecmascript-6
10063 arrow-parens : [2, "always"]
101- # # Require a space on each side of arrow operator
10264 arrow-spacing : [2, {"before": true, "after": true}]
103- # # Prevent using => in a condition where <= is intended
10465 no-arrow-condition : 2
66+ prefer-const : 2
10567
10668 # Strict Mode
107- # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
108- # # 'use strict' on top
69+ # https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode
10970 strict : [2, "global"]
11071
11172 # Variables
112- # list: https://github.com/eslint/eslint/tree/master/docs/rules#variables
113- # # disallow use of undefined variables (globals)
73+ # https://github.com/eslint/eslint/tree/master/docs/rules#variables
11474 no-undef : 2
115- # # disallow declaration of variables that are not used in the code
11675 no-unused-vars : [2, {"args": "none"}]
11776
11877 # Custom rules in tools/eslint-rules
0 commit comments