|
@@ -32,16 +32,14 @@ module.exports = {
|
32
|
32
|
'import'
|
33
|
33
|
],
|
34
|
34
|
'rules': {
|
35
|
|
- 'new-cap': 2,
|
36
|
|
- 'no-console': 0,
|
37
|
|
- 'semi': [ 'error', 'always' ],
|
38
|
|
-
|
39
|
35
|
// Possible Errors group
|
40
|
36
|
'no-cond-assign': 2,
|
|
37
|
+ 'no-console': 0,
|
41
|
38
|
'no-constant-condition': 2,
|
42
|
39
|
'no-control-regex': 2,
|
43
|
40
|
'no-debugger': 2,
|
44
|
41
|
'no-dupe-args': 2,
|
|
42
|
+ 'no-dupe-keys': 2,
|
45
|
43
|
'no-duplicate-case': 2,
|
46
|
44
|
'no-empty': 2,
|
47
|
45
|
'no-empty-character-class': 2,
|
|
@@ -66,7 +64,6 @@ module.exports = {
|
66
|
64
|
'no-unreachable': 2,
|
67
|
65
|
'no-unsafe-finally': 2,
|
68
|
66
|
'use-isnan': 2,
|
69
|
|
-
|
70
|
67
|
'valid-typeof': 2,
|
71
|
68
|
|
72
|
69
|
// Best Practices group
|
|
@@ -76,12 +73,108 @@ module.exports = {
|
76
|
73
|
'complexity': 0,
|
77
|
74
|
'consistent-return': 0,
|
78
|
75
|
'curly': 2,
|
|
76
|
+ 'default-case': 0,
|
|
77
|
+ 'no-caller': 2,
|
|
78
|
+ 'no-case-declarations': 2,
|
|
79
|
+ 'no-div-regex': 0,
|
|
80
|
+ 'no-empty-pattern': 2,
|
|
81
|
+ 'no-eval': 2,
|
|
82
|
+ 'no-extend-native': 2,
|
|
83
|
+ 'no-extra-label': 2,
|
|
84
|
+ 'no-fallthrough': 2,
|
|
85
|
+ 'no-floating-decimal': 2,
|
|
86
|
+ 'no-implicit-globals': 2,
|
|
87
|
+ 'no-implied-eval': 2,
|
|
88
|
+ 'no-iterator': 2,
|
|
89
|
+ 'no-labels': 2,
|
|
90
|
+ 'no-lone-blocks': 2,
|
|
91
|
+ 'no-magic-numbers': 0,
|
79
|
92
|
'no-multi-spaces': 2,
|
|
93
|
+ 'no-multi-str': 2,
|
|
94
|
+ 'no-native-reassign': 2,
|
|
95
|
+ 'no-new-func': 2,
|
|
96
|
+ 'no-octal': 2,
|
|
97
|
+ 'no-octal-escape': 2,
|
|
98
|
+ 'no-proto': 2,
|
|
99
|
+ 'no-redeclare': 2,
|
|
100
|
+ 'no-return-assign': 2,
|
|
101
|
+ 'no-script-url': 2,
|
|
102
|
+ 'no-self-assign': 2,
|
|
103
|
+ 'no-self-compare': 2,
|
|
104
|
+ 'no-sequences': 2,
|
|
105
|
+ 'no-unmodified-loop-condition': 2,
|
|
106
|
+ 'no-unused-labels': 2,
|
|
107
|
+ 'no-useless-call': 2,
|
|
108
|
+ 'no-void': 2,
|
|
109
|
+ 'no-warning-comments': 0,
|
|
110
|
+ 'no-with': 2,
|
|
111
|
+ 'wrap-iife': [ 'error', 'inside' ],
|
|
112
|
+
|
|
113
|
+ // Strict Mode group
|
|
114
|
+ 'strict': 2,
|
|
115
|
+
|
|
116
|
+ // Variables group
|
|
117
|
+ 'init-declarations': 0,
|
|
118
|
+ 'no-catch-shadow': 2,
|
|
119
|
+ 'no-delete-var': 2,
|
|
120
|
+ 'no-label-var': 2,
|
|
121
|
+ 'no-restricted-globals': 0,
|
|
122
|
+ 'no-shadow-restricted-names': 2,
|
|
123
|
+ 'no-undef': 2,
|
|
124
|
+ 'no-undefined': 0,
|
|
125
|
+ 'no-unused-vars': 2,
|
80
|
126
|
|
81
|
127
|
// Stylistic issues group
|
82
|
128
|
'brace-style': 2,
|
|
129
|
+ 'comma-style': 2,
|
|
130
|
+ 'func-names': 0,
|
|
131
|
+ 'func-style': 0,
|
|
132
|
+ 'id-blacklist': 0,
|
|
133
|
+ 'id-length': 0,
|
|
134
|
+ 'id-match': 0,
|
83
|
135
|
'indent': [ 'error', 4, { 'SwitchCase': 0 } ],
|
|
136
|
+ 'linebreak-style': [ 'error', 'unix' ],
|
|
137
|
+ 'max-lines': 0,
|
|
138
|
+ 'max-nested-callbacks': 2,
|
|
139
|
+ 'max-statements': 0,
|
|
140
|
+ 'multiline-ternary': 0,
|
|
141
|
+ 'new-cap': 2,
|
|
142
|
+ 'new-parens': 2,
|
|
143
|
+ 'no-array-constructor': 2,
|
|
144
|
+ 'no-inline-comments': 0,
|
|
145
|
+ 'no-mixed-spaces-and-tabs': 2,
|
|
146
|
+ 'no-nested-ternary': 0,
|
|
147
|
+ 'no-new-object': 2,
|
|
148
|
+ 'no-plusplus': 0,
|
|
149
|
+ 'no-restricted-syntax': 0,
|
|
150
|
+ 'no-ternary': 0,
|
|
151
|
+ 'no-underscore-dangle': 0,
|
|
152
|
+ 'no-whitespace-before-property': 2,
|
|
153
|
+ 'object-curly-newline': 0,
|
|
154
|
+ 'one-var': 0,
|
|
155
|
+ 'one-var-declaration-per-line': 0,
|
|
156
|
+ 'operator-assignment': 0,
|
|
157
|
+ 'padded-blocks': 0,
|
|
158
|
+ 'quote-props': 0,
|
|
159
|
+ 'semi': [ 'error', 'always' ],
|
|
160
|
+ 'space-unary-ops': 2,
|
|
161
|
+ 'unicode-bom': 0,
|
|
162
|
+ 'wrap-regex': 0,
|
84
|
163
|
|
|
164
|
+ // ES6 group rules
|
|
165
|
+ 'arrow-spacing': 2,
|
|
166
|
+ 'constructor-super': 2,
|
|
167
|
+ 'generator-star-spacing': 2,
|
|
168
|
+ 'no-class-assign': 2,
|
|
169
|
+ 'no-confusing-arrow': 2,
|
|
170
|
+ 'no-const-assign': 2,
|
|
171
|
+ 'no-dupe-class-members': 2,
|
|
172
|
+ 'no-new-symbol': 2,
|
|
173
|
+ 'no-restricted-imports': 0,
|
|
174
|
+ 'no-this-before-super': 2,
|
|
175
|
+ 'no-useless-computed-key': 2,
|
|
176
|
+ 'no-useless-constructor': 2,
|
|
177
|
+ 'no-useless-rename': 2,
|
85
|
178
|
'object-shorthand': [
|
86
|
179
|
'error',
|
87
|
180
|
'always',
|