@@ -71,12 +71,16 @@ rules:
71
71
flowtype/use-flow-type : error
72
72
flowtype/valid-syntax : off
73
73
74
+ # #################################################
75
+ # ESLint builtin rules list based on `v5.6.0`
76
+ # #################################################
77
+
74
78
# Possible Errors
75
79
# https://eslint.org/docs/rules/#possible-errors
76
80
77
81
for-direction : error
78
82
getter-return : error
79
- # no-async-promise-executor: undecided
83
+ no-async-promise-executor : error
80
84
no-await-in-loop : error
81
85
no-compare-neg-zero : error
82
86
no-cond-assign : error
@@ -97,28 +101,28 @@ rules:
97
101
no-inner-declarations : [error, functions]
98
102
no-invalid-regexp : error
99
103
no-irregular-whitespace : error
100
- # no-misleading-character-class: undecided
104
+ no-misleading-character-class : error
101
105
no-obj-calls : error
102
106
# no-prototype-builtins: undecided
103
107
no-regex-spaces : error
104
108
no-sparse-arrays : error
105
- # no-template-curly-in-string: undecided
109
+ no-template-curly-in-string : error
106
110
no-unexpected-multiline : off
107
111
no-unreachable : error
108
112
no-unsafe-finally : error
109
113
no-unsafe-negation : error
110
- # require-atomic-updates: undecided
114
+ require-atomic-updates : error
111
115
use-isnan : error
112
116
valid-jsdoc : off
113
117
valid-typeof : error
114
118
115
119
# Best Practices
116
120
# https://eslint.org/docs/rules/#best-practices
117
121
118
- # accessor-pairs: undecided
119
- # array-callback-return: undecided
122
+ accessor-pairs : error
123
+ array-callback-return : [error, { allowImplicit: true }]
120
124
block-scoped-var : off
121
- # class-methods-use-this: undecided
125
+ class-methods-use-this : off
122
126
complexity : off
123
127
consistent-return : off
124
128
curly : [error, all]
@@ -127,32 +131,32 @@ rules:
127
131
dot-notation : off
128
132
eqeqeq : [error, smart]
129
133
guard-for-in : error
130
- # max-classes-per-file: undecided
134
+ max-classes-per-file : off
131
135
no-alert : error
132
136
no-caller : error
133
137
# TODO: recommended rule but disable due to errors in existing code
134
138
# no-case-declarations: error
135
139
no-div-regex : error
136
140
no-else-return : error
137
- # no-empty-function: undecided
141
+ no-empty-function : off
138
142
no-empty-pattern : error
139
143
no-eq-null : off
140
144
no-eval : error
141
145
no-extend-native : error
142
146
no-extra-bind : error
143
- # no-extra-label: undecided
147
+ no-extra-label : error
144
148
no-fallthrough : error
145
149
no-floating-decimal : off
146
150
no-global-assign : error
147
151
no-implicit-coercion : error
148
- # no-implicit-globals: undecided
152
+ no-implicit-globals : off
149
153
no-implied-eval : error
150
154
no-invalid-this : off
151
155
no-iterator : error
152
156
no-labels : [error, {allowLoop: true}]
153
157
no-lone-blocks : error
154
158
no-loop-func : off
155
- # no-magic-numbers: undecided
159
+ no-magic-numbers : off
156
160
no-multi-spaces : off
157
161
no-multi-str : error
158
162
no-new : error
@@ -163,19 +167,19 @@ rules:
163
167
no-param-reassign : error
164
168
no-proto : error
165
169
no-redeclare : error
166
- # no-restricted-properties: undecided
170
+ no-restricted-properties : off
167
171
no-return-assign : error
168
- # no-return-await: undecided
172
+ no-return-await : error
169
173
no-script-url : error
170
174
no-self-assign : error
171
175
no-self-compare : off
172
176
no-sequences : off
173
177
no-throw-literal : error
174
- # no-unmodified-loop-condition: undecided
178
+ no-unmodified-loop-condition : error
175
179
no-unused-expressions : error
176
180
no-unused-labels : error
177
181
no-useless-call : error
178
- # no-useless-concat: undecided
182
+ no-useless-concat : error
179
183
no-useless-escape : error
180
184
no-useless-return : error
181
185
no-void : error
@@ -184,7 +188,7 @@ rules:
184
188
# prefer-promise-reject-errors: undecided
185
189
radix : error
186
190
# require-await: undecided
187
- # require-unicode-regexp: undecided
191
+ require-unicode-regexp : off
188
192
vars-on-top : off
189
193
wrap-iife : off
190
194
yoda : [error, never, {exceptRange: true}]
@@ -200,7 +204,7 @@ rules:
200
204
init-declarations : off
201
205
no-delete-var : error
202
206
no-label-var : error
203
- # no-restricted-globals: undecided
207
+ no-restricted-globals : off
204
208
no-shadow : error
205
209
no-shadow-restricted-names : error
206
210
no-undef : error
@@ -213,9 +217,9 @@ rules:
213
217
# https://eslint.org/docs/rules/#nodejs-and-commonjs
214
218
215
219
callback-return : error
216
- # global-require: undecided
220
+ global-require : error
217
221
handle-callback-err : [error, error]
218
- # no-buffer-constructor: undecided
222
+ no-buffer-constructor : error
219
223
no-mixed-requires : [error, true]
220
224
no-new-require : error
221
225
no-path-concat : error
@@ -241,11 +245,11 @@ rules:
241
245
consistent-this : off
242
246
eol-last : off
243
247
func-call-spacing : off
244
- # func-name-matching: undecided
248
+ func-name-matching : off
245
249
func-names : off
246
250
func-style : off
247
251
function-paren-newline : off
248
- # id-blacklist: undecided
252
+ id-blacklist : off
249
253
id-length : off
250
254
id-match : [error, "^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$"]
251
255
implicit-arrow-linebreak : off
@@ -256,15 +260,15 @@ rules:
256
260
# line-comment-position: undecided
257
261
linebreak-style : error
258
262
lines-around-comment : off
259
- # lines-between-class-members: undecided
263
+ lines-between-class-members : off
260
264
max-depth : off
261
265
max-len : off
262
- # max-lines: undecided
263
- # max-lines-per-function: undecided
266
+ max-lines : off
267
+ max-lines-per-function : off
264
268
max-nested-callbacks : off
265
269
max-params : off
266
270
max-statements : off
267
- # max-statements-per-line: undecided
271
+ max-statements-per-line : off
268
272
# multiline-comment-style: undecided
269
273
multiline-ternary : off
270
274
new-cap : off
@@ -277,15 +281,15 @@ rules:
277
281
no-lonely-if : error
278
282
no-mixed-operators : off
279
283
no-mixed-spaces-and-tabs : off
280
- # no-multi-assign: undecided
284
+ no-multi-assign : off
281
285
no-multiple-empty-lines : off
282
- # no-negated-condition: undecided
286
+ no-negated-condition : off
283
287
no-nested-ternary : off
284
288
no-new-object : error
285
289
no-plusplus : off
286
290
no-spaced-func : off
287
- # no-restricted-syntax: undecided
288
- # no-tabs: undecided
291
+ no-restricted-syntax : off
292
+ no-tabs : error
289
293
no-ternary : off
290
294
no-trailing-spaces : off
291
295
no-underscore-dangle : off
@@ -301,14 +305,14 @@ rules:
301
305
operator-linebreak : off
302
306
padded-blocks : off
303
307
padding-line-between-statements : off
304
- # prefer-object-spread: undecided
308
+ prefer-object-spread : error
305
309
quote-props : off
306
310
quotes : off
307
311
# require-jsdoc: undecided
308
312
semi : off
309
313
semi-spacing : off
310
314
semi-style : off
311
- # sort-keys: undecided
315
+ sort-keys : off
312
316
sort-vars : off
313
317
space-before-blocks : off
314
318
space-before-function-paren : off
@@ -324,31 +328,31 @@ rules:
324
328
# ECMAScript 6
325
329
# https://eslint.org/docs/rules/#ecmascript-6
326
330
327
- # arrow-body-style: undecided
331
+ arrow-body-style : off
328
332
arrow-parens : off
329
333
arrow-spacing : off
330
334
constructor-super : error
331
335
generator-star-spacing : off
332
336
no-class-assign : error
333
- # no-confusing-arrow: undecided
337
+ no-confusing-arrow : off
334
338
no-const-assign : error
335
339
no-dupe-class-members : error
336
340
# no-duplicate-imports: undecided
337
341
no-new-symbol : error
338
- # no-restricted-imports: undecided
342
+ no-restricted-imports : off
339
343
no-this-before-super : error
340
- # no-useless-computed-key: undecided
341
- # no-useless-constructor: undecided
342
- # no-useless-rename: undecided
344
+ no-useless-computed-key : error
345
+ no-useless-constructor : error
346
+ no-useless-rename : error
343
347
no-var : error
344
348
object-shorthand : [error, always]
345
- # prefer-arrow-callback: undecided
349
+ prefer-arrow-callback : error
346
350
prefer-const : error
347
- # prefer-destructuring: undecided
348
- # prefer-numeric-literals: undecided
351
+ prefer-destructuring : off
352
+ prefer-numeric-literals : error
349
353
# prefer-rest-params: undecided
350
354
prefer-spread : off
351
- # prefer-template: undecided
355
+ prefer-template : off
352
356
require-yield : off
353
357
rest-spread-spacing : off
354
358
# sort-imports: undecided
0 commit comments