eslint-config-setup 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -6
- package/dist/configs/0b23ff88.js +6 -23
- package/dist/configs/12c62446.js +5 -22
- package/dist/configs/196d687e.js +33 -48
- package/dist/configs/1c3f743c.js +6 -23
- package/dist/configs/2f6f3a82.js +32 -45
- package/dist/configs/4eb62e57.js +7 -24
- package/dist/configs/52762a42.js +6 -4
- package/dist/configs/532f50a4.js +30 -20
- package/dist/configs/5a302873.js +31 -44
- package/dist/configs/6bc0d588.js +37 -21
- package/dist/configs/91e82988.js +30 -20
- package/dist/configs/c2fecd3d.js +6 -4
- package/dist/configs/cde010b4.js +5 -2
- package/dist/configs/d537b683.js +37 -21
- package/dist/configs/db69ebb6.js +34 -49
- package/dist/configs/e4b137fa.js +5 -2
- package/dist/index.js +24 -4
- package/dist/index.js.map +1 -1
- package/dist/modules.d.ts +9 -7
- package/dist/modules.js +80 -38
- package/dist/modules.js.map +1 -1
- package/dist/oxlint-configs/3047b7d6.json +30 -2
- package/dist/oxlint-configs/58d5e03b.json +31 -3
- package/dist/oxlint-configs/78b40daa.json +35 -5
- package/dist/oxlint-configs/7ff0d87e.json +45 -3
- package/dist/oxlint-configs/85912bf0.json +44 -2
- package/dist/oxlint-configs/9dc42dc3.json +35 -5
- package/dist/oxlint-configs/d46cb9b7.json +57 -6
- package/dist/oxlint-configs/ef643c60.json +57 -6
- package/package.json +37 -35
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"rules": {
|
|
18
18
|
"constructor-super": "error",
|
|
19
19
|
"for-direction": "error",
|
|
20
|
+
"getter-return": "error",
|
|
20
21
|
"no-async-promise-executor": "error",
|
|
21
22
|
"no-case-declarations": "error",
|
|
22
23
|
"no-class-assign": "error",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"no-sparse-arrays": "error",
|
|
57
58
|
"no-this-before-super": "error",
|
|
58
59
|
"no-unassigned-vars": "error",
|
|
60
|
+
"no-unreachable": "error",
|
|
59
61
|
"no-unsafe-finally": "error",
|
|
60
62
|
"no-unsafe-negation": "error",
|
|
61
63
|
"no-unsafe-optional-chaining": "error",
|
|
@@ -118,6 +120,7 @@
|
|
|
118
120
|
"no-proto": "error",
|
|
119
121
|
"no-iterator": "error",
|
|
120
122
|
"no-script-url": "error",
|
|
123
|
+
"no-implicit-globals": "error",
|
|
121
124
|
"eqeqeq": [
|
|
122
125
|
"error",
|
|
123
126
|
"smart"
|
|
@@ -144,6 +147,12 @@
|
|
|
144
147
|
"always"
|
|
145
148
|
],
|
|
146
149
|
"no-multi-str": "error",
|
|
150
|
+
"prefer-regex-literals": [
|
|
151
|
+
"error",
|
|
152
|
+
{
|
|
153
|
+
"disallowRedundantWrapping": true
|
|
154
|
+
}
|
|
155
|
+
],
|
|
147
156
|
"complexity": [
|
|
148
157
|
"error",
|
|
149
158
|
10
|
|
@@ -212,6 +221,7 @@
|
|
|
212
221
|
],
|
|
213
222
|
"import/no-mutable-exports": "error",
|
|
214
223
|
"import/first": "error",
|
|
224
|
+
"import/newline-after-import": "error",
|
|
215
225
|
"import/no-named-as-default": "error",
|
|
216
226
|
"import/no-named-as-default-member": "error",
|
|
217
227
|
"import/no-empty-named-blocks": "error",
|
|
@@ -273,7 +283,10 @@
|
|
|
273
283
|
"camelCase": true,
|
|
274
284
|
"pascalCase": true,
|
|
275
285
|
"kebabCase": true
|
|
276
|
-
}
|
|
286
|
+
},
|
|
287
|
+
"ignore": [
|
|
288
|
+
"__tests__"
|
|
289
|
+
]
|
|
277
290
|
}
|
|
278
291
|
],
|
|
279
292
|
"unicorn/no-array-reduce": "warn",
|
|
@@ -310,6 +323,12 @@
|
|
|
310
323
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
311
324
|
"unicorn/no-zero-fractions": "error",
|
|
312
325
|
"unicorn/numeric-separators-style": "error",
|
|
326
|
+
"unicorn/prefer-export-from": [
|
|
327
|
+
"error",
|
|
328
|
+
{
|
|
329
|
+
"checkUsedVariables": false
|
|
330
|
+
}
|
|
331
|
+
],
|
|
313
332
|
"unicorn/prefer-native-coercion-functions": "error",
|
|
314
333
|
"unicorn/prefer-regexp-test": "error",
|
|
315
334
|
"unicorn/prefer-spread": "error",
|
|
@@ -332,16 +351,17 @@
|
|
|
332
351
|
"jsdoc/require-property-description": "error",
|
|
333
352
|
"jsdoc/require-property-name": "error",
|
|
334
353
|
"jsdoc/require-returns-description": "warn",
|
|
335
|
-
"
|
|
354
|
+
"jsdoc/require-throws-type": "error",
|
|
355
|
+
"jsdoc/require-yields-type": "error",
|
|
336
356
|
"react/no-array-index-key": "warn",
|
|
337
357
|
"react/no-clone-element": "warn",
|
|
338
358
|
"react/no-direct-mutation-state": "error",
|
|
339
359
|
"react/forward-ref-uses-ref": "warn",
|
|
340
360
|
"react/jsx-key": "error",
|
|
341
|
-
"react/no-
|
|
361
|
+
"react/no-unstable-nested-components": "error",
|
|
342
362
|
"react/no-did-mount-set-state": "warn",
|
|
363
|
+
"react/no-did-update-set-state": "warn",
|
|
343
364
|
"react/no-will-update-set-state": "warn",
|
|
344
|
-
"react/rules-of-hooks": "error",
|
|
345
365
|
"react/hook-use-state": "warn",
|
|
346
366
|
"react/no-children-prop": "error",
|
|
347
367
|
"react/jsx-no-comment-textnodes": "warn",
|
|
@@ -353,6 +373,7 @@
|
|
|
353
373
|
"react/jsx-no-script-url": "warn",
|
|
354
374
|
"react/void-dom-elements-no-children": "error",
|
|
355
375
|
"react/jsx-no-constructed-context-values": "warn",
|
|
376
|
+
"react/no-object-type-as-default-prop": "warn",
|
|
356
377
|
"react/jsx-no-useless-fragment": "warn",
|
|
357
378
|
"react/button-has-type": "warn",
|
|
358
379
|
"react/iframe-missing-sandbox": "warn",
|
|
@@ -388,6 +409,8 @@
|
|
|
388
409
|
"ignoreNonDOM": true
|
|
389
410
|
}
|
|
390
411
|
],
|
|
412
|
+
"react/rules-of-hooks": "error",
|
|
413
|
+
"react/exhaustive-deps": "warn",
|
|
391
414
|
"react/only-export-components": [
|
|
392
415
|
"warn",
|
|
393
416
|
{
|
|
@@ -405,6 +428,7 @@
|
|
|
405
428
|
],
|
|
406
429
|
"rules": {
|
|
407
430
|
"constructor-super": "off",
|
|
431
|
+
"getter-return": "off",
|
|
408
432
|
"no-class-assign": "off",
|
|
409
433
|
"no-const-assign": "off",
|
|
410
434
|
"no-dupe-class-members": "off",
|
|
@@ -416,6 +440,7 @@
|
|
|
416
440
|
"no-redeclare": "off",
|
|
417
441
|
"no-setter-return": "off",
|
|
418
442
|
"no-this-before-super": "off",
|
|
443
|
+
"no-unreachable": "off",
|
|
419
444
|
"no-unsafe-negation": "off",
|
|
420
445
|
"no-with": "off",
|
|
421
446
|
"prefer-const": [
|
|
@@ -425,6 +450,7 @@
|
|
|
425
450
|
}
|
|
426
451
|
],
|
|
427
452
|
"no-array-constructor": "error",
|
|
453
|
+
"no-implied-eval": "off",
|
|
428
454
|
"no-unused-expressions": "error",
|
|
429
455
|
"no-unused-vars": [
|
|
430
456
|
"error",
|
|
@@ -520,7 +546,11 @@
|
|
|
520
546
|
],
|
|
521
547
|
"typescript/no-import-type-side-effects": "error",
|
|
522
548
|
"typescript/no-useless-empty-export": "error",
|
|
523
|
-
"typescript/no-unnecessary-parameter-property-assignment": "error"
|
|
549
|
+
"typescript/no-unnecessary-parameter-property-assignment": "error",
|
|
550
|
+
"typescript/method-signature-style": [
|
|
551
|
+
"error",
|
|
552
|
+
"property"
|
|
553
|
+
]
|
|
524
554
|
},
|
|
525
555
|
"plugins": [
|
|
526
556
|
"typescript"
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"unicorn",
|
|
6
6
|
"jsdoc",
|
|
7
7
|
"react",
|
|
8
|
-
"jsx-a11y"
|
|
8
|
+
"jsx-a11y",
|
|
9
|
+
"react-perf"
|
|
9
10
|
],
|
|
10
11
|
"categories": {
|
|
11
12
|
"correctness": "off"
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
"rules": {
|
|
18
19
|
"constructor-super": "error",
|
|
19
20
|
"for-direction": "error",
|
|
21
|
+
"getter-return": "error",
|
|
20
22
|
"no-async-promise-executor": "error",
|
|
21
23
|
"no-case-declarations": "error",
|
|
22
24
|
"no-class-assign": "error",
|
|
@@ -56,6 +58,7 @@
|
|
|
56
58
|
"no-sparse-arrays": "error",
|
|
57
59
|
"no-this-before-super": "error",
|
|
58
60
|
"no-unassigned-vars": "error",
|
|
61
|
+
"no-unreachable": "error",
|
|
59
62
|
"no-unsafe-finally": "error",
|
|
60
63
|
"no-unsafe-negation": "error",
|
|
61
64
|
"no-unsafe-optional-chaining": "error",
|
|
@@ -118,6 +121,7 @@
|
|
|
118
121
|
"no-proto": "error",
|
|
119
122
|
"no-iterator": "error",
|
|
120
123
|
"no-script-url": "error",
|
|
124
|
+
"no-implicit-globals": "error",
|
|
121
125
|
"eqeqeq": [
|
|
122
126
|
"error",
|
|
123
127
|
"smart"
|
|
@@ -144,6 +148,12 @@
|
|
|
144
148
|
"always"
|
|
145
149
|
],
|
|
146
150
|
"no-multi-str": "error",
|
|
151
|
+
"prefer-regex-literals": [
|
|
152
|
+
"error",
|
|
153
|
+
{
|
|
154
|
+
"disallowRedundantWrapping": true
|
|
155
|
+
}
|
|
156
|
+
],
|
|
147
157
|
"complexity": [
|
|
148
158
|
"error",
|
|
149
159
|
10
|
|
@@ -221,7 +231,22 @@
|
|
|
221
231
|
"no-multi-assign": "error",
|
|
222
232
|
"no-implicit-coercion": "error",
|
|
223
233
|
"arrow-body-style": "error",
|
|
234
|
+
"prefer-arrow-callback": [
|
|
235
|
+
"error",
|
|
236
|
+
{
|
|
237
|
+
"allowNamedFunctions": true
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"logical-assignment-operators": [
|
|
241
|
+
"error",
|
|
242
|
+
"always",
|
|
243
|
+
{
|
|
244
|
+
"enforceForIfStatements": true
|
|
245
|
+
}
|
|
246
|
+
],
|
|
224
247
|
"prefer-exponentiation-operator": "error",
|
|
248
|
+
"prefer-named-capture-group": "error",
|
|
249
|
+
"require-unicode-regexp": "error",
|
|
225
250
|
"no-warning-comments": "warn",
|
|
226
251
|
"no-await-in-loop": "error",
|
|
227
252
|
"import/no-duplicates": "error",
|
|
@@ -234,6 +259,7 @@
|
|
|
234
259
|
],
|
|
235
260
|
"import/no-mutable-exports": "error",
|
|
236
261
|
"import/first": "error",
|
|
262
|
+
"import/newline-after-import": "error",
|
|
237
263
|
"import/no-named-as-default": "error",
|
|
238
264
|
"import/no-named-as-default-member": "error",
|
|
239
265
|
"import/no-empty-named-blocks": "error",
|
|
@@ -295,7 +321,10 @@
|
|
|
295
321
|
"camelCase": true,
|
|
296
322
|
"pascalCase": true,
|
|
297
323
|
"kebabCase": true
|
|
298
|
-
}
|
|
324
|
+
},
|
|
325
|
+
"ignore": [
|
|
326
|
+
"__tests__"
|
|
327
|
+
]
|
|
299
328
|
}
|
|
300
329
|
],
|
|
301
330
|
"unicorn/no-array-reduce": "error",
|
|
@@ -332,6 +361,12 @@
|
|
|
332
361
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
333
362
|
"unicorn/no-zero-fractions": "error",
|
|
334
363
|
"unicorn/numeric-separators-style": "error",
|
|
364
|
+
"unicorn/prefer-export-from": [
|
|
365
|
+
"error",
|
|
366
|
+
{
|
|
367
|
+
"checkUsedVariables": false
|
|
368
|
+
}
|
|
369
|
+
],
|
|
335
370
|
"unicorn/prefer-native-coercion-functions": "error",
|
|
336
371
|
"unicorn/prefer-regexp-test": "error",
|
|
337
372
|
"unicorn/prefer-spread": "error",
|
|
@@ -342,7 +377,6 @@
|
|
|
342
377
|
"unicorn/prefer-date-now": "error",
|
|
343
378
|
"unicorn/text-encoding-identifier-case": "error",
|
|
344
379
|
"unicorn/prefer-import-meta-properties": "error",
|
|
345
|
-
"unicorn/no-array-for-each": "error",
|
|
346
380
|
"unicorn/prefer-ternary": [
|
|
347
381
|
"error",
|
|
348
382
|
"only-single-line"
|
|
@@ -369,16 +403,17 @@
|
|
|
369
403
|
"jsdoc/require-property-name": "error",
|
|
370
404
|
"jsdoc/require-returns": "error",
|
|
371
405
|
"jsdoc/require-returns-description": "warn",
|
|
372
|
-
"
|
|
406
|
+
"jsdoc/require-throws-type": "error",
|
|
407
|
+
"jsdoc/require-yields-type": "error",
|
|
373
408
|
"react/no-array-index-key": "error",
|
|
374
409
|
"react/no-clone-element": "warn",
|
|
375
410
|
"react/no-direct-mutation-state": "error",
|
|
376
411
|
"react/forward-ref-uses-ref": "error",
|
|
377
412
|
"react/jsx-key": "error",
|
|
378
|
-
"react/no-
|
|
413
|
+
"react/no-unstable-nested-components": "error",
|
|
379
414
|
"react/no-did-mount-set-state": "warn",
|
|
415
|
+
"react/no-did-update-set-state": "warn",
|
|
380
416
|
"react/no-will-update-set-state": "warn",
|
|
381
|
-
"react/rules-of-hooks": "error",
|
|
382
417
|
"react/hook-use-state": "warn",
|
|
383
418
|
"react/no-children-prop": "error",
|
|
384
419
|
"react/jsx-no-comment-textnodes": "error",
|
|
@@ -390,6 +425,7 @@
|
|
|
390
425
|
"react/jsx-no-script-url": "warn",
|
|
391
426
|
"react/void-dom-elements-no-children": "error",
|
|
392
427
|
"react/jsx-no-constructed-context-values": "error",
|
|
428
|
+
"react/no-object-type-as-default-prop": "error",
|
|
393
429
|
"react/jsx-no-useless-fragment": "error",
|
|
394
430
|
"react/button-has-type": "error",
|
|
395
431
|
"react/iframe-missing-sandbox": "error",
|
|
@@ -425,7 +461,15 @@
|
|
|
425
461
|
"ignoreNonDOM": true
|
|
426
462
|
}
|
|
427
463
|
],
|
|
464
|
+
"react-perf/jsx-no-jsx-as-prop": "error",
|
|
465
|
+
"react-perf/jsx-no-new-array-as-prop": "error",
|
|
466
|
+
"react-perf/jsx-no-new-function-as-prop": "error",
|
|
467
|
+
"react-perf/jsx-no-new-object-as-prop": "error",
|
|
428
468
|
"jsx-a11y/no-static-element-interactions": "error",
|
|
469
|
+
"jsx-a11y/no-noninteractive-element-interactions": "error",
|
|
470
|
+
"jsx-a11y/interactive-supports-focus": "error",
|
|
471
|
+
"react/rules-of-hooks": "error",
|
|
472
|
+
"react/exhaustive-deps": "warn",
|
|
429
473
|
"react/only-export-components": [
|
|
430
474
|
"warn",
|
|
431
475
|
{
|
|
@@ -443,6 +487,7 @@
|
|
|
443
487
|
],
|
|
444
488
|
"rules": {
|
|
445
489
|
"constructor-super": "off",
|
|
490
|
+
"getter-return": "off",
|
|
446
491
|
"no-class-assign": "off",
|
|
447
492
|
"no-const-assign": "off",
|
|
448
493
|
"no-dupe-class-members": "off",
|
|
@@ -454,6 +499,7 @@
|
|
|
454
499
|
"no-redeclare": "off",
|
|
455
500
|
"no-setter-return": "off",
|
|
456
501
|
"no-this-before-super": "off",
|
|
502
|
+
"no-unreachable": "off",
|
|
457
503
|
"no-unsafe-negation": "off",
|
|
458
504
|
"no-with": "off",
|
|
459
505
|
"prefer-const": [
|
|
@@ -463,6 +509,7 @@
|
|
|
463
509
|
}
|
|
464
510
|
],
|
|
465
511
|
"no-array-constructor": "error",
|
|
512
|
+
"no-implied-eval": "off",
|
|
466
513
|
"no-unused-expressions": "error",
|
|
467
514
|
"no-unused-vars": [
|
|
468
515
|
"error",
|
|
@@ -573,6 +620,10 @@
|
|
|
573
620
|
"typescript/no-import-type-side-effects": "error",
|
|
574
621
|
"typescript/no-useless-empty-export": "error",
|
|
575
622
|
"typescript/no-unnecessary-parameter-property-assignment": "error",
|
|
623
|
+
"typescript/method-signature-style": [
|
|
624
|
+
"error",
|
|
625
|
+
"property"
|
|
626
|
+
],
|
|
576
627
|
"typescript/explicit-function-return-type": [
|
|
577
628
|
"error",
|
|
578
629
|
{
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"jsdoc",
|
|
7
7
|
"node",
|
|
8
8
|
"react",
|
|
9
|
-
"jsx-a11y"
|
|
9
|
+
"jsx-a11y",
|
|
10
|
+
"react-perf"
|
|
10
11
|
],
|
|
11
12
|
"categories": {
|
|
12
13
|
"correctness": "off"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
"rules": {
|
|
20
21
|
"constructor-super": "error",
|
|
21
22
|
"for-direction": "error",
|
|
23
|
+
"getter-return": "error",
|
|
22
24
|
"no-async-promise-executor": "error",
|
|
23
25
|
"no-case-declarations": "error",
|
|
24
26
|
"no-class-assign": "error",
|
|
@@ -58,6 +60,7 @@
|
|
|
58
60
|
"no-sparse-arrays": "error",
|
|
59
61
|
"no-this-before-super": "error",
|
|
60
62
|
"no-unassigned-vars": "error",
|
|
63
|
+
"no-unreachable": "error",
|
|
61
64
|
"no-unsafe-finally": "error",
|
|
62
65
|
"no-unsafe-negation": "error",
|
|
63
66
|
"no-unsafe-optional-chaining": "error",
|
|
@@ -120,6 +123,7 @@
|
|
|
120
123
|
"no-proto": "error",
|
|
121
124
|
"no-iterator": "error",
|
|
122
125
|
"no-script-url": "error",
|
|
126
|
+
"no-implicit-globals": "error",
|
|
123
127
|
"eqeqeq": [
|
|
124
128
|
"error",
|
|
125
129
|
"smart"
|
|
@@ -146,6 +150,12 @@
|
|
|
146
150
|
"always"
|
|
147
151
|
],
|
|
148
152
|
"no-multi-str": "error",
|
|
153
|
+
"prefer-regex-literals": [
|
|
154
|
+
"error",
|
|
155
|
+
{
|
|
156
|
+
"disallowRedundantWrapping": true
|
|
157
|
+
}
|
|
158
|
+
],
|
|
149
159
|
"complexity": [
|
|
150
160
|
"error",
|
|
151
161
|
10
|
|
@@ -223,7 +233,22 @@
|
|
|
223
233
|
"no-multi-assign": "error",
|
|
224
234
|
"no-implicit-coercion": "error",
|
|
225
235
|
"arrow-body-style": "error",
|
|
236
|
+
"prefer-arrow-callback": [
|
|
237
|
+
"error",
|
|
238
|
+
{
|
|
239
|
+
"allowNamedFunctions": true
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"logical-assignment-operators": [
|
|
243
|
+
"error",
|
|
244
|
+
"always",
|
|
245
|
+
{
|
|
246
|
+
"enforceForIfStatements": true
|
|
247
|
+
}
|
|
248
|
+
],
|
|
226
249
|
"prefer-exponentiation-operator": "error",
|
|
250
|
+
"prefer-named-capture-group": "error",
|
|
251
|
+
"require-unicode-regexp": "error",
|
|
227
252
|
"no-warning-comments": "warn",
|
|
228
253
|
"no-await-in-loop": "error",
|
|
229
254
|
"import/no-duplicates": "error",
|
|
@@ -236,6 +261,7 @@
|
|
|
236
261
|
],
|
|
237
262
|
"import/no-mutable-exports": "error",
|
|
238
263
|
"import/first": "error",
|
|
264
|
+
"import/newline-after-import": "error",
|
|
239
265
|
"import/no-named-as-default": "error",
|
|
240
266
|
"import/no-named-as-default-member": "error",
|
|
241
267
|
"import/no-empty-named-blocks": "error",
|
|
@@ -297,7 +323,10 @@
|
|
|
297
323
|
"camelCase": true,
|
|
298
324
|
"pascalCase": true,
|
|
299
325
|
"kebabCase": true
|
|
300
|
-
}
|
|
326
|
+
},
|
|
327
|
+
"ignore": [
|
|
328
|
+
"__tests__"
|
|
329
|
+
]
|
|
301
330
|
}
|
|
302
331
|
],
|
|
303
332
|
"unicorn/no-array-reduce": "error",
|
|
@@ -334,6 +363,12 @@
|
|
|
334
363
|
"unicorn/no-unreadable-array-destructuring": "error",
|
|
335
364
|
"unicorn/no-zero-fractions": "error",
|
|
336
365
|
"unicorn/numeric-separators-style": "error",
|
|
366
|
+
"unicorn/prefer-export-from": [
|
|
367
|
+
"error",
|
|
368
|
+
{
|
|
369
|
+
"checkUsedVariables": false
|
|
370
|
+
}
|
|
371
|
+
],
|
|
337
372
|
"unicorn/prefer-native-coercion-functions": "error",
|
|
338
373
|
"unicorn/prefer-regexp-test": "error",
|
|
339
374
|
"unicorn/prefer-spread": "error",
|
|
@@ -344,7 +379,6 @@
|
|
|
344
379
|
"unicorn/prefer-date-now": "error",
|
|
345
380
|
"unicorn/text-encoding-identifier-case": "error",
|
|
346
381
|
"unicorn/prefer-import-meta-properties": "error",
|
|
347
|
-
"unicorn/no-array-for-each": "error",
|
|
348
382
|
"unicorn/prefer-ternary": [
|
|
349
383
|
"error",
|
|
350
384
|
"only-single-line"
|
|
@@ -371,19 +405,20 @@
|
|
|
371
405
|
"jsdoc/require-property-name": "error",
|
|
372
406
|
"jsdoc/require-returns": "error",
|
|
373
407
|
"jsdoc/require-returns-description": "warn",
|
|
408
|
+
"jsdoc/require-throws-type": "error",
|
|
409
|
+
"jsdoc/require-yields-type": "error",
|
|
374
410
|
"node/no-exports-assign": "error",
|
|
375
411
|
"node/no-path-concat": "error",
|
|
376
412
|
"node/handle-callback-err": "error",
|
|
377
|
-
"react/exhaustive-deps": "warn",
|
|
378
413
|
"react/no-array-index-key": "error",
|
|
379
414
|
"react/no-clone-element": "warn",
|
|
380
415
|
"react/no-direct-mutation-state": "error",
|
|
381
416
|
"react/forward-ref-uses-ref": "error",
|
|
382
417
|
"react/jsx-key": "error",
|
|
383
|
-
"react/no-
|
|
418
|
+
"react/no-unstable-nested-components": "error",
|
|
384
419
|
"react/no-did-mount-set-state": "warn",
|
|
420
|
+
"react/no-did-update-set-state": "warn",
|
|
385
421
|
"react/no-will-update-set-state": "warn",
|
|
386
|
-
"react/rules-of-hooks": "error",
|
|
387
422
|
"react/hook-use-state": "warn",
|
|
388
423
|
"react/no-children-prop": "error",
|
|
389
424
|
"react/jsx-no-comment-textnodes": "error",
|
|
@@ -395,6 +430,7 @@
|
|
|
395
430
|
"react/jsx-no-script-url": "warn",
|
|
396
431
|
"react/void-dom-elements-no-children": "error",
|
|
397
432
|
"react/jsx-no-constructed-context-values": "error",
|
|
433
|
+
"react/no-object-type-as-default-prop": "error",
|
|
398
434
|
"react/jsx-no-useless-fragment": "error",
|
|
399
435
|
"react/button-has-type": "error",
|
|
400
436
|
"react/iframe-missing-sandbox": "error",
|
|
@@ -430,7 +466,15 @@
|
|
|
430
466
|
"ignoreNonDOM": true
|
|
431
467
|
}
|
|
432
468
|
],
|
|
469
|
+
"react-perf/jsx-no-jsx-as-prop": "error",
|
|
470
|
+
"react-perf/jsx-no-new-array-as-prop": "error",
|
|
471
|
+
"react-perf/jsx-no-new-function-as-prop": "error",
|
|
472
|
+
"react-perf/jsx-no-new-object-as-prop": "error",
|
|
433
473
|
"jsx-a11y/no-static-element-interactions": "error",
|
|
474
|
+
"jsx-a11y/no-noninteractive-element-interactions": "error",
|
|
475
|
+
"jsx-a11y/interactive-supports-focus": "error",
|
|
476
|
+
"react/rules-of-hooks": "error",
|
|
477
|
+
"react/exhaustive-deps": "warn",
|
|
434
478
|
"react/only-export-components": [
|
|
435
479
|
"warn",
|
|
436
480
|
{
|
|
@@ -448,6 +492,7 @@
|
|
|
448
492
|
],
|
|
449
493
|
"rules": {
|
|
450
494
|
"constructor-super": "off",
|
|
495
|
+
"getter-return": "off",
|
|
451
496
|
"no-class-assign": "off",
|
|
452
497
|
"no-const-assign": "off",
|
|
453
498
|
"no-dupe-class-members": "off",
|
|
@@ -459,6 +504,7 @@
|
|
|
459
504
|
"no-redeclare": "off",
|
|
460
505
|
"no-setter-return": "off",
|
|
461
506
|
"no-this-before-super": "off",
|
|
507
|
+
"no-unreachable": "off",
|
|
462
508
|
"no-unsafe-negation": "off",
|
|
463
509
|
"no-with": "off",
|
|
464
510
|
"prefer-const": [
|
|
@@ -468,6 +514,7 @@
|
|
|
468
514
|
}
|
|
469
515
|
],
|
|
470
516
|
"no-array-constructor": "error",
|
|
517
|
+
"no-implied-eval": "off",
|
|
471
518
|
"no-unused-expressions": "error",
|
|
472
519
|
"no-unused-vars": [
|
|
473
520
|
"error",
|
|
@@ -578,6 +625,10 @@
|
|
|
578
625
|
"typescript/no-import-type-side-effects": "error",
|
|
579
626
|
"typescript/no-useless-empty-export": "error",
|
|
580
627
|
"typescript/no-unnecessary-parameter-property-assignment": "error",
|
|
628
|
+
"typescript/method-signature-style": [
|
|
629
|
+
"error",
|
|
630
|
+
"property"
|
|
631
|
+
],
|
|
581
632
|
"typescript/explicit-function-return-type": [
|
|
582
633
|
"error",
|
|
583
634
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-setup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Pre-generated, permutation-based ESLint flat configs for modern TypeScript & React projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"check": "tsc --noEmit",
|
|
23
23
|
"build": "tsup",
|
|
24
24
|
"generate": "node --import tsx src/build/generate.ts",
|
|
25
|
+
"react:rules:check": "tsx src/build/check-react-rule-surface.ts",
|
|
25
26
|
"prepublishOnly": "npm run build && npm run generate",
|
|
26
27
|
"test": "vitest run",
|
|
27
28
|
"test:coverage": "vitest run --coverage"
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"url": "https://github.com/sponsors/sebastian-software"
|
|
53
54
|
},
|
|
54
55
|
"engines": {
|
|
55
|
-
"node": ">=22"
|
|
56
|
+
"node": ">=22.13"
|
|
56
57
|
},
|
|
57
58
|
"license": "MIT",
|
|
58
59
|
"publishConfig": {
|
|
@@ -61,53 +62,54 @@
|
|
|
61
62
|
},
|
|
62
63
|
"sideEffects": false,
|
|
63
64
|
"peerDependencies": {
|
|
64
|
-
"eslint": ">=
|
|
65
|
+
"eslint": ">=10",
|
|
65
66
|
"typescript": ">= 5.0"
|
|
66
67
|
},
|
|
67
68
|
"dependencies": {
|
|
68
|
-
"@cspell/eslint-plugin": "^10.0.
|
|
69
|
-
"@eslint-react/eslint-plugin": "^
|
|
69
|
+
"@cspell/eslint-plugin": "^10.0.1",
|
|
70
|
+
"@eslint-react/eslint-plugin": "^5.11.2",
|
|
70
71
|
"@eslint/js": "^10.0.1",
|
|
71
|
-
"@eslint/json": "^
|
|
72
|
+
"@eslint/json": "^2.0.1",
|
|
72
73
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
73
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
74
|
+
"@vitest/eslint-plugin": "^1.6.21",
|
|
74
75
|
"eslint-config-prettier": "^10.1.8",
|
|
75
|
-
"eslint-plugin-compat": "^7.0.
|
|
76
|
-
"eslint-plugin-de-morgan": "^2.1.
|
|
77
|
-
"eslint-plugin-import-x": "^4.
|
|
78
|
-
"eslint-plugin-jsdoc": "^
|
|
76
|
+
"eslint-plugin-compat": "^7.0.2",
|
|
77
|
+
"eslint-plugin-de-morgan": "^2.1.2",
|
|
78
|
+
"eslint-plugin-import-x": "^4.17.1",
|
|
79
|
+
"eslint-plugin-jsdoc": "^63.0.12",
|
|
79
80
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
80
|
-
"eslint-plugin-mdx": "^3.
|
|
81
|
-
"eslint-plugin-n": "^
|
|
82
|
-
"eslint-plugin-oxlint": "^1.
|
|
83
|
-
"eslint-plugin-package-json": "^
|
|
84
|
-
"eslint-plugin-perfectionist": "^5.9.
|
|
85
|
-
"eslint-plugin-playwright": "^2.10.
|
|
81
|
+
"eslint-plugin-mdx": "^3.8.1",
|
|
82
|
+
"eslint-plugin-n": "^18.2.1",
|
|
83
|
+
"eslint-plugin-oxlint": "^1.72.0",
|
|
84
|
+
"eslint-plugin-package-json": "^1.5.0",
|
|
85
|
+
"eslint-plugin-perfectionist": "^5.9.1",
|
|
86
|
+
"eslint-plugin-playwright": "^2.10.5",
|
|
86
87
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
87
|
-
"eslint-plugin-react-
|
|
88
|
-
"eslint-plugin-react-
|
|
89
|
-
"eslint-plugin-
|
|
90
|
-
"eslint-plugin-
|
|
91
|
-
"eslint-plugin-
|
|
92
|
-
"eslint-plugin-
|
|
88
|
+
"eslint-plugin-react-perf": "^3.3.3",
|
|
89
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
90
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
|
|
91
|
+
"eslint-plugin-regexp": "^3.1.1",
|
|
92
|
+
"eslint-plugin-security": "^4.0.1",
|
|
93
|
+
"eslint-plugin-sonarjs": "^4.1.0",
|
|
94
|
+
"eslint-plugin-storybook": "^10.4.6",
|
|
93
95
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
94
|
-
"eslint-plugin-unicorn": "^
|
|
96
|
+
"eslint-plugin-unicorn": "^71.0.0",
|
|
95
97
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
96
|
-
"globals": "^17.
|
|
97
|
-
"typescript-eslint": "^8.
|
|
98
|
+
"globals": "^17.7.0",
|
|
99
|
+
"typescript-eslint": "^8.62.1"
|
|
98
100
|
},
|
|
99
101
|
"devDependencies": {
|
|
100
|
-
"@oxlint/migrate": "^1.
|
|
101
|
-
"@types/node": "^
|
|
102
|
+
"@oxlint/migrate": "^1.72.0",
|
|
103
|
+
"@types/node": "^26.1.0",
|
|
102
104
|
"@types/picomatch": "^4.0.3",
|
|
103
|
-
"@vitest/coverage-v8": "^4.1.
|
|
104
|
-
"eslint": "^10.
|
|
105
|
-
"oxlint": "^1.
|
|
106
|
-
"picomatch": "^4.0.
|
|
107
|
-
"storybook": "^10.
|
|
105
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
106
|
+
"eslint": "^10.6.0",
|
|
107
|
+
"oxlint": "^1.72.0",
|
|
108
|
+
"picomatch": "^4.0.5",
|
|
109
|
+
"storybook": "^10.4.6",
|
|
108
110
|
"tsup": "^8.5.1",
|
|
109
|
-
"tsx": "^4.
|
|
111
|
+
"tsx": "^4.23.0",
|
|
110
112
|
"typescript": "^6.0.3",
|
|
111
|
-
"vitest": "^4.1.
|
|
113
|
+
"vitest": "^4.1.10"
|
|
112
114
|
}
|
|
113
115
|
}
|