eslint-config-setup 0.3.2 → 0.4.0
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 +6 -0
- package/dist/configs/0b23ff88.js +138 -24
- package/dist/configs/12c62446.js +155 -9
- package/dist/configs/196d687e.js +281 -47
- package/dist/configs/1c3f743c.js +157 -9
- package/dist/configs/2f6f3a82.js +303 -39
- package/dist/configs/4eb62e57.js +140 -21
- package/dist/configs/52762a42.js +278 -34
- package/dist/configs/532f50a4.js +476 -49
- package/dist/configs/5a302873.js +301 -39
- package/dist/configs/6bc0d588.js +442 -57
- package/dist/configs/91e82988.js +478 -49
- package/dist/configs/c2fecd3d.js +280 -31
- package/dist/configs/cde010b4.js +309 -16
- package/dist/configs/d537b683.js +444 -54
- package/dist/configs/db69ebb6.js +283 -44
- package/dist/configs/e4b137fa.js +307 -16
- package/dist/index.d.ts +13 -13
- package/dist/index.js +65 -67
- package/dist/index.js.map +1 -1
- package/dist/modules.d.ts +39 -40
- package/dist/modules.js +1136 -1105
- package/dist/modules.js.map +1 -1
- package/dist/oxlint-configs/3047b7d6.json +243 -148
- package/dist/oxlint-configs/58d5e03b.json +242 -148
- package/dist/oxlint-configs/78b40daa.json +274 -158
- package/dist/oxlint-configs/7ff0d87e.json +326 -244
- package/dist/oxlint-configs/85912bf0.json +326 -243
- package/dist/oxlint-configs/9dc42dc3.json +273 -158
- package/dist/oxlint-configs/d46cb9b7.json +351 -246
- package/dist/oxlint-configs/ef643c60.json +352 -246
- package/dist/{types-CAUUIuJR.d.ts → types-CAO1PbsB.d.ts} +7 -7
- package/package.json +32 -31
package/dist/configs/cde010b4.js
CHANGED
|
@@ -25,9 +25,10 @@ export default [
|
|
|
25
25
|
// TypeScript parser setup
|
|
26
26
|
...tseslint.configs.strictTypeChecked.slice(0, 2),
|
|
27
27
|
|
|
28
|
-
// Base rules — all effective rules for
|
|
28
|
+
// Base rules — all effective rules for TS plus shared JS/TS rules
|
|
29
29
|
{
|
|
30
30
|
name: "eslint-config-setup/base",
|
|
31
|
+
ignores: ["**/*.{md,mdx}"],
|
|
31
32
|
plugins: {
|
|
32
33
|
"@cspell": cspellPlugin,
|
|
33
34
|
"@typescript-eslint": tseslint.plugin,
|
|
@@ -72,7 +73,7 @@ export default [
|
|
|
72
73
|
"@typescript-eslint/ban-ts-comment": [
|
|
73
74
|
"error",
|
|
74
75
|
{
|
|
75
|
-
"
|
|
76
|
+
"ts-expect-error": "allow-with-description"
|
|
76
77
|
}
|
|
77
78
|
],
|
|
78
79
|
"@typescript-eslint/ban-tslint-comment": "error",
|
|
@@ -80,7 +81,10 @@ export default [
|
|
|
80
81
|
"@typescript-eslint/consistent-generic-constructors": "error",
|
|
81
82
|
"@typescript-eslint/consistent-indexed-object-style": "error",
|
|
82
83
|
"@typescript-eslint/consistent-type-assertions": "error",
|
|
83
|
-
"@typescript-eslint/consistent-type-definitions":
|
|
84
|
+
"@typescript-eslint/consistent-type-definitions": [
|
|
85
|
+
"error",
|
|
86
|
+
"type"
|
|
87
|
+
],
|
|
84
88
|
"@typescript-eslint/consistent-type-exports": [
|
|
85
89
|
"error",
|
|
86
90
|
{
|
|
@@ -90,10 +94,14 @@ export default [
|
|
|
90
94
|
"@typescript-eslint/consistent-type-imports": [
|
|
91
95
|
"error",
|
|
92
96
|
{
|
|
93
|
-
"fixStyle": "
|
|
97
|
+
"fixStyle": "separate-type-imports"
|
|
94
98
|
}
|
|
95
99
|
],
|
|
96
100
|
"@typescript-eslint/dot-notation": "error",
|
|
101
|
+
"@typescript-eslint/method-signature-style": [
|
|
102
|
+
"error",
|
|
103
|
+
"property"
|
|
104
|
+
],
|
|
97
105
|
"@typescript-eslint/no-array-constructor": "error",
|
|
98
106
|
"@typescript-eslint/no-array-delete": "error",
|
|
99
107
|
"@typescript-eslint/no-base-to-string": "error",
|
|
@@ -105,10 +113,21 @@ export default [
|
|
|
105
113
|
"@typescript-eslint/no-dynamic-delete": "error",
|
|
106
114
|
"@typescript-eslint/no-empty-function": "error",
|
|
107
115
|
"@typescript-eslint/no-empty-object-type": "error",
|
|
108
|
-
"@typescript-eslint/no-explicit-any":
|
|
116
|
+
"@typescript-eslint/no-explicit-any": [
|
|
117
|
+
"warn",
|
|
118
|
+
{
|
|
119
|
+
"fixToUnknown": true
|
|
120
|
+
}
|
|
121
|
+
],
|
|
109
122
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
110
123
|
"@typescript-eslint/no-extraneous-class": "error",
|
|
111
|
-
"@typescript-eslint/no-floating-promises":
|
|
124
|
+
"@typescript-eslint/no-floating-promises": [
|
|
125
|
+
"error",
|
|
126
|
+
{
|
|
127
|
+
"checkThenables": true,
|
|
128
|
+
"ignoreIIFE": true
|
|
129
|
+
}
|
|
130
|
+
],
|
|
112
131
|
"@typescript-eslint/no-for-in-array": "error",
|
|
113
132
|
"@typescript-eslint/no-implied-eval": "error",
|
|
114
133
|
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
@@ -159,6 +178,7 @@ export default [
|
|
|
159
178
|
"@typescript-eslint/no-unsafe-function-type": "error",
|
|
160
179
|
"@typescript-eslint/no-unsafe-member-access": "error",
|
|
161
180
|
"@typescript-eslint/no-unsafe-return": "error",
|
|
181
|
+
"@typescript-eslint/no-unsafe-type-assertion": "error",
|
|
162
182
|
"@typescript-eslint/no-unsafe-unary-minus": "error",
|
|
163
183
|
"@typescript-eslint/no-unused-expressions": "error",
|
|
164
184
|
"@typescript-eslint/no-unused-vars": [
|
|
@@ -189,11 +209,19 @@ export default [
|
|
|
189
209
|
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
|
190
210
|
"@typescript-eslint/prefer-optional-chain": "error",
|
|
191
211
|
"@typescript-eslint/prefer-promise-reject-errors": "error",
|
|
212
|
+
"@typescript-eslint/prefer-readonly": "warn",
|
|
192
213
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
193
214
|
"@typescript-eslint/prefer-regexp-exec": "error",
|
|
194
215
|
"@typescript-eslint/prefer-return-this-type": "error",
|
|
195
216
|
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
|
217
|
+
"@typescript-eslint/promise-function-async": "error",
|
|
196
218
|
"@typescript-eslint/related-getter-setter-pairs": "error",
|
|
219
|
+
"@typescript-eslint/require-array-sort-compare": [
|
|
220
|
+
"error",
|
|
221
|
+
{
|
|
222
|
+
"ignoreStringArrays": true
|
|
223
|
+
}
|
|
224
|
+
],
|
|
197
225
|
"@typescript-eslint/require-await": "error",
|
|
198
226
|
"@typescript-eslint/restrict-plus-operands": [
|
|
199
227
|
"error",
|
|
@@ -223,6 +251,13 @@ export default [
|
|
|
223
251
|
}
|
|
224
252
|
],
|
|
225
253
|
"@typescript-eslint/strict-void-return": "error",
|
|
254
|
+
"@typescript-eslint/switch-exhaustiveness-check": [
|
|
255
|
+
"error",
|
|
256
|
+
{
|
|
257
|
+
"allowDefaultCaseForExhaustiveSwitch": false,
|
|
258
|
+
"requireDefaultForNonUnion": true
|
|
259
|
+
}
|
|
260
|
+
],
|
|
226
261
|
"@typescript-eslint/triple-slash-reference": "error",
|
|
227
262
|
"@typescript-eslint/unbound-method": "error",
|
|
228
263
|
"@typescript-eslint/unified-signatures": "error",
|
|
@@ -265,17 +300,35 @@ export default [
|
|
|
265
300
|
"maxDepth": 3
|
|
266
301
|
}
|
|
267
302
|
],
|
|
268
|
-
"import/no-duplicates":
|
|
303
|
+
"import/no-duplicates": "error",
|
|
304
|
+
"import/no-empty-named-blocks": "error",
|
|
305
|
+
"import/no-extraneous-dependencies": [
|
|
269
306
|
"error",
|
|
270
307
|
{
|
|
271
|
-
"
|
|
308
|
+
"includeTypes": true
|
|
272
309
|
}
|
|
273
310
|
],
|
|
274
|
-
"import/no-empty-named-blocks": "error",
|
|
275
311
|
"import/no-mutable-exports": "error",
|
|
276
312
|
"import/no-named-as-default": "error",
|
|
277
313
|
"import/no-named-as-default-member": "error",
|
|
314
|
+
"import/no-named-default": "error",
|
|
278
315
|
"import/no-self-import": "error",
|
|
316
|
+
"import/no-unassigned-import": [
|
|
317
|
+
"error",
|
|
318
|
+
{
|
|
319
|
+
"allow": [
|
|
320
|
+
"@babel/polyfill",
|
|
321
|
+
"**/register",
|
|
322
|
+
"**/register.*",
|
|
323
|
+
"**/register/**",
|
|
324
|
+
"**/register/**.*",
|
|
325
|
+
"**/*.css",
|
|
326
|
+
"**/*.scss",
|
|
327
|
+
"**/*.sass",
|
|
328
|
+
"**/*.less"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
],
|
|
279
332
|
"import/no-useless-path-segments": "error",
|
|
280
333
|
"jsdoc/check-access": "error",
|
|
281
334
|
"jsdoc/check-alignment": "error",
|
|
@@ -363,6 +416,7 @@ export default [
|
|
|
363
416
|
"no-extra-boolean-cast": "error",
|
|
364
417
|
"no-fallthrough": "error",
|
|
365
418
|
"no-global-assign": "error",
|
|
419
|
+
"no-implicit-globals": "error",
|
|
366
420
|
"no-irregular-whitespace": "error",
|
|
367
421
|
"no-iterator": "error",
|
|
368
422
|
"no-labels": "error",
|
|
@@ -381,10 +435,19 @@ export default [
|
|
|
381
435
|
"no-proto": "error",
|
|
382
436
|
"no-prototype-builtins": "error",
|
|
383
437
|
"no-regex-spaces": "error",
|
|
438
|
+
"no-return-assign": [
|
|
439
|
+
"error",
|
|
440
|
+
"always"
|
|
441
|
+
],
|
|
384
442
|
"no-script-url": "error",
|
|
385
443
|
"no-self-assign": "error",
|
|
386
444
|
"no-self-compare": "error",
|
|
387
|
-
"no-sequences":
|
|
445
|
+
"no-sequences": [
|
|
446
|
+
"error",
|
|
447
|
+
{
|
|
448
|
+
"allowInParentheses": false
|
|
449
|
+
}
|
|
450
|
+
],
|
|
388
451
|
"no-shadow-restricted-names": "error",
|
|
389
452
|
"no-sparse-arrays": "error",
|
|
390
453
|
"no-template-curly-in-string": "error",
|
|
@@ -398,12 +461,18 @@ export default [
|
|
|
398
461
|
"no-useless-assignment": "error",
|
|
399
462
|
"no-useless-call": "error",
|
|
400
463
|
"no-useless-catch": "error",
|
|
401
|
-
"no-useless-computed-key":
|
|
464
|
+
"no-useless-computed-key": [
|
|
465
|
+
"error",
|
|
466
|
+
{
|
|
467
|
+
"enforceForClassMembers": true
|
|
468
|
+
}
|
|
469
|
+
],
|
|
402
470
|
"no-useless-concat": "error",
|
|
403
471
|
"no-useless-escape": "error",
|
|
404
472
|
"no-useless-rename": "error",
|
|
405
473
|
"no-useless-return": "error",
|
|
406
474
|
"no-var": "error",
|
|
475
|
+
"node/handle-callback-err": "error",
|
|
407
476
|
"node/hashbang": "error",
|
|
408
477
|
"node/no-deprecated-api": "error",
|
|
409
478
|
"node/no-exports-assign": "error",
|
|
@@ -431,6 +500,15 @@ export default [
|
|
|
431
500
|
],
|
|
432
501
|
"node/prefer-promises/dns": "error",
|
|
433
502
|
"node/prefer-promises/fs": "error",
|
|
503
|
+
"node/process-exit-as-throw": "error",
|
|
504
|
+
"object-shorthand": [
|
|
505
|
+
"error",
|
|
506
|
+
"always",
|
|
507
|
+
{
|
|
508
|
+
"avoidExplicitReturnArrows": true,
|
|
509
|
+
"avoidQuotes": true
|
|
510
|
+
}
|
|
511
|
+
],
|
|
434
512
|
"perfectionist/sort-exports": "error",
|
|
435
513
|
"perfectionist/sort-imports": [
|
|
436
514
|
"error",
|
|
@@ -443,12 +521,13 @@ export default [
|
|
|
443
521
|
"perfectionist/sort-named-imports": "error",
|
|
444
522
|
"perfectionist/sort-union-types": "error",
|
|
445
523
|
"prefer-const": "error",
|
|
524
|
+
"prefer-numeric-literals": "error",
|
|
446
525
|
"prefer-object-has-own": "error",
|
|
447
526
|
"prefer-object-spread": "error",
|
|
448
527
|
"prefer-regex-literals": "error",
|
|
449
528
|
"prefer-rest-params": "error",
|
|
450
529
|
"prefer-spread": "error",
|
|
451
|
-
"prefer-template": "
|
|
530
|
+
"prefer-template": "warn",
|
|
452
531
|
"preserve-caught-error": "error",
|
|
453
532
|
"radix": "error",
|
|
454
533
|
"regexp/confusing-quantifier": "warn",
|
|
@@ -565,15 +644,28 @@ export default [
|
|
|
565
644
|
"unicorn/consistent-date-clone": "error",
|
|
566
645
|
"unicorn/consistent-empty-array-spread": "error",
|
|
567
646
|
"unicorn/consistent-existence-index-check": "error",
|
|
647
|
+
"unicorn/consistent-function-scoping": "warn",
|
|
568
648
|
"unicorn/error-message": "error",
|
|
649
|
+
"unicorn/filename-case": [
|
|
650
|
+
"error",
|
|
651
|
+
{
|
|
652
|
+
"cases": {
|
|
653
|
+
"camelCase": true,
|
|
654
|
+
"pascalCase": true,
|
|
655
|
+
"kebabCase": true
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
],
|
|
569
659
|
"unicorn/new-for-builtins": "error",
|
|
570
660
|
"unicorn/no-abusive-eslint-disable": "error",
|
|
571
661
|
"unicorn/no-accessor-recursion": "error",
|
|
572
662
|
"unicorn/no-anonymous-default-export": "error",
|
|
573
663
|
"unicorn/no-array-callback-reference": "error",
|
|
574
664
|
"unicorn/no-array-method-this-argument": "error",
|
|
665
|
+
"unicorn/no-array-reduce": "warn",
|
|
575
666
|
"unicorn/no-await-expression-member": "error",
|
|
576
667
|
"unicorn/no-await-in-promise-methods": "error",
|
|
668
|
+
"unicorn/no-for-loop": "warn",
|
|
577
669
|
"unicorn/no-instanceof-builtins": "error",
|
|
578
670
|
"unicorn/no-invalid-fetch-options": "error",
|
|
579
671
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
@@ -591,7 +683,12 @@ export default [
|
|
|
591
683
|
"unicorn/no-useless-length-check": "error",
|
|
592
684
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
593
685
|
"unicorn/no-useless-spread": "error",
|
|
594
|
-
"unicorn/no-useless-undefined":
|
|
686
|
+
"unicorn/no-useless-undefined": [
|
|
687
|
+
"warn",
|
|
688
|
+
{
|
|
689
|
+
"checkArguments": false
|
|
690
|
+
}
|
|
691
|
+
],
|
|
595
692
|
"unicorn/no-zero-fractions": "error",
|
|
596
693
|
"unicorn/numeric-separators-style": "error",
|
|
597
694
|
"unicorn/prefer-array-find": "error",
|
|
@@ -601,6 +698,7 @@ export default [
|
|
|
601
698
|
"unicorn/prefer-array-some": "error",
|
|
602
699
|
"unicorn/prefer-at": "error",
|
|
603
700
|
"unicorn/prefer-date-now": "error",
|
|
701
|
+
"unicorn/prefer-dom-node-dataset": "error",
|
|
604
702
|
"unicorn/prefer-export-from": [
|
|
605
703
|
"error",
|
|
606
704
|
{
|
|
@@ -632,8 +730,19 @@ export default [
|
|
|
632
730
|
"unicorn/text-encoding-identifier-case": "error",
|
|
633
731
|
"unicorn/throw-new-error": "error",
|
|
634
732
|
"unused-imports/no-unused-imports": "error",
|
|
635
|
-
"use-isnan":
|
|
636
|
-
|
|
733
|
+
"use-isnan": [
|
|
734
|
+
"error",
|
|
735
|
+
{
|
|
736
|
+
"enforceForIndexOf": true,
|
|
737
|
+
"enforceForSwitchCase": true
|
|
738
|
+
}
|
|
739
|
+
],
|
|
740
|
+
"valid-typeof": [
|
|
741
|
+
"error",
|
|
742
|
+
{
|
|
743
|
+
"requireStringLiterals": true
|
|
744
|
+
}
|
|
745
|
+
],
|
|
637
746
|
"yoda": "error"
|
|
638
747
|
},
|
|
639
748
|
},
|
|
@@ -643,46 +752,91 @@ export default [
|
|
|
643
752
|
name: "eslint-config-setup/js-compat",
|
|
644
753
|
files: ["**/*.{js,mjs,cjs}"],
|
|
645
754
|
rules: {
|
|
755
|
+
"@typescript-eslint/adjacent-overload-signatures": "off",
|
|
756
|
+
"@typescript-eslint/array-type": "off",
|
|
646
757
|
"@typescript-eslint/await-thenable": "off",
|
|
758
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
759
|
+
"@typescript-eslint/ban-tslint-comment": "off",
|
|
760
|
+
"@typescript-eslint/class-literal-property-style": "off",
|
|
761
|
+
"@typescript-eslint/consistent-generic-constructors": "off",
|
|
762
|
+
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
647
763
|
"@typescript-eslint/consistent-return": "off",
|
|
764
|
+
"@typescript-eslint/consistent-type-assertions": "off",
|
|
765
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
648
766
|
"@typescript-eslint/consistent-type-exports": "off",
|
|
767
|
+
"@typescript-eslint/consistent-type-imports": "off",
|
|
649
768
|
"@typescript-eslint/dot-notation": "off",
|
|
769
|
+
"@typescript-eslint/method-signature-style": "off",
|
|
650
770
|
"@typescript-eslint/naming-convention": "off",
|
|
771
|
+
"@typescript-eslint/no-array-constructor": "off",
|
|
651
772
|
"@typescript-eslint/no-array-delete": "off",
|
|
652
773
|
"@typescript-eslint/no-base-to-string": "off",
|
|
774
|
+
"@typescript-eslint/no-confusing-non-null-assertion": "off",
|
|
653
775
|
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
654
776
|
"@typescript-eslint/no-deprecated": "off",
|
|
777
|
+
"@typescript-eslint/no-duplicate-enum-values": "off",
|
|
655
778
|
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
779
|
+
"@typescript-eslint/no-dynamic-delete": "off",
|
|
780
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
781
|
+
"@typescript-eslint/no-empty-object-type": "off",
|
|
782
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
783
|
+
"@typescript-eslint/no-extra-non-null-assertion": "off",
|
|
784
|
+
"@typescript-eslint/no-extraneous-class": "off",
|
|
656
785
|
"@typescript-eslint/no-floating-promises": "off",
|
|
657
786
|
"@typescript-eslint/no-for-in-array": "off",
|
|
658
787
|
"@typescript-eslint/no-implied-eval": "off",
|
|
788
|
+
"@typescript-eslint/no-import-type-side-effects": "off",
|
|
789
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
790
|
+
"@typescript-eslint/no-invalid-void-type": "off",
|
|
659
791
|
"@typescript-eslint/no-meaningless-void-operator": "off",
|
|
792
|
+
"@typescript-eslint/no-misused-new": "off",
|
|
660
793
|
"@typescript-eslint/no-misused-promises": "off",
|
|
661
794
|
"@typescript-eslint/no-misused-spread": "off",
|
|
662
795
|
"@typescript-eslint/no-mixed-enums": "off",
|
|
796
|
+
"@typescript-eslint/no-namespace": "off",
|
|
797
|
+
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "off",
|
|
798
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
|
|
799
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
663
800
|
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
801
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
802
|
+
"@typescript-eslint/no-shadow": "off",
|
|
803
|
+
"@typescript-eslint/no-this-alias": "off",
|
|
664
804
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
665
805
|
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
806
|
+
"@typescript-eslint/no-unnecessary-parameter-property-assignment": "off",
|
|
666
807
|
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
667
808
|
"@typescript-eslint/no-unnecessary-template-expression": "off",
|
|
668
809
|
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
669
810
|
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
811
|
+
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
|
670
812
|
"@typescript-eslint/no-unnecessary-type-conversion": "off",
|
|
671
813
|
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
672
814
|
"@typescript-eslint/no-unsafe-argument": "off",
|
|
673
815
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
674
816
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
817
|
+
"@typescript-eslint/no-unsafe-declaration-merging": "off",
|
|
675
818
|
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
819
|
+
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
676
820
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
677
821
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
678
822
|
"@typescript-eslint/no-unsafe-type-assertion": "off",
|
|
679
823
|
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
824
|
+
"@typescript-eslint/no-unused-expressions": "off",
|
|
825
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
826
|
+
"@typescript-eslint/no-useless-constructor": "off",
|
|
680
827
|
"@typescript-eslint/no-useless-default-assignment": "off",
|
|
828
|
+
"@typescript-eslint/no-useless-empty-export": "off",
|
|
829
|
+
"@typescript-eslint/no-wrapper-object-types": "off",
|
|
681
830
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
682
831
|
"@typescript-eslint/only-throw-error": "off",
|
|
832
|
+
"@typescript-eslint/prefer-as-const": "off",
|
|
683
833
|
"@typescript-eslint/prefer-destructuring": "off",
|
|
684
834
|
"@typescript-eslint/prefer-find": "off",
|
|
835
|
+
"@typescript-eslint/prefer-for-of": "off",
|
|
836
|
+
"@typescript-eslint/prefer-function-type": "off",
|
|
685
837
|
"@typescript-eslint/prefer-includes": "off",
|
|
838
|
+
"@typescript-eslint/prefer-literal-enum-member": "off",
|
|
839
|
+
"@typescript-eslint/prefer-namespace-keyword": "off",
|
|
686
840
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
687
841
|
"@typescript-eslint/prefer-optional-chain": "off",
|
|
688
842
|
"@typescript-eslint/prefer-promise-reject-errors": "off",
|
|
@@ -702,33 +856,47 @@ export default [
|
|
|
702
856
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
703
857
|
"@typescript-eslint/strict-void-return": "off",
|
|
704
858
|
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
859
|
+
"@typescript-eslint/triple-slash-reference": "off",
|
|
705
860
|
"@typescript-eslint/unbound-method": "off",
|
|
861
|
+
"@typescript-eslint/unified-signatures": "off",
|
|
706
862
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
707
863
|
"constructor-super": "error",
|
|
864
|
+
"dot-notation": "off",
|
|
708
865
|
"getter-return": "error",
|
|
866
|
+
"no-array-constructor": "off",
|
|
709
867
|
"no-class-assign": "error",
|
|
710
868
|
"no-const-assign": "error",
|
|
711
869
|
"no-dupe-args": "error",
|
|
712
870
|
"no-dupe-class-members": "error",
|
|
713
871
|
"no-dupe-keys": "error",
|
|
872
|
+
"no-empty-function": "off",
|
|
714
873
|
"no-func-assign": "error",
|
|
874
|
+
"no-implied-eval": "off",
|
|
715
875
|
"no-import-assign": "error",
|
|
716
876
|
"no-new-native-nonconstructor": "error",
|
|
717
877
|
"no-new-symbol": "off",
|
|
718
878
|
"no-obj-calls": "error",
|
|
719
879
|
"no-redeclare": "error",
|
|
880
|
+
"no-return-await": "off",
|
|
720
881
|
"no-setter-return": "error",
|
|
882
|
+
"no-shadow": "off",
|
|
721
883
|
"no-this-before-super": "error",
|
|
884
|
+
"no-throw-literal": "off",
|
|
722
885
|
"no-undef": "error",
|
|
723
886
|
"no-unreachable": "error",
|
|
724
887
|
"no-unsafe-negation": "error",
|
|
888
|
+
"no-unused-expressions": "off",
|
|
889
|
+
"no-unused-vars": "error",
|
|
890
|
+
"no-useless-constructor": "off",
|
|
725
891
|
"no-with": "error",
|
|
726
892
|
"prefer-const": [
|
|
727
893
|
"error",
|
|
728
894
|
{
|
|
729
895
|
"destructuring": "all"
|
|
730
896
|
}
|
|
731
|
-
]
|
|
897
|
+
],
|
|
898
|
+
"prefer-promise-reject-errors": "off",
|
|
899
|
+
"require-await": "off"
|
|
732
900
|
},
|
|
733
901
|
},
|
|
734
902
|
|
|
@@ -966,7 +1134,132 @@ export default [
|
|
|
966
1134
|
// Markdown/MDX code block linting
|
|
967
1135
|
{
|
|
968
1136
|
...mdxPlugin.flatCodeBlocks,
|
|
1137
|
+
languageOptions: {
|
|
1138
|
+
...mdxPlugin.flatCodeBlocks.languageOptions,
|
|
1139
|
+
parserOptions: {
|
|
1140
|
+
...mdxPlugin.flatCodeBlocks.languageOptions?.parserOptions,
|
|
1141
|
+
projectService: false,
|
|
1142
|
+
},
|
|
1143
|
+
},
|
|
969
1144
|
rules: {
|
|
1145
|
+
...{
|
|
1146
|
+
"@typescript-eslint/adjacent-overload-signatures": "off",
|
|
1147
|
+
"@typescript-eslint/array-type": "off",
|
|
1148
|
+
"@typescript-eslint/await-thenable": "off",
|
|
1149
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
1150
|
+
"@typescript-eslint/ban-tslint-comment": "off",
|
|
1151
|
+
"@typescript-eslint/class-literal-property-style": "off",
|
|
1152
|
+
"@typescript-eslint/consistent-generic-constructors": "off",
|
|
1153
|
+
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
1154
|
+
"@typescript-eslint/consistent-type-assertions": "off",
|
|
1155
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
1156
|
+
"@typescript-eslint/consistent-type-exports": "off",
|
|
1157
|
+
"@typescript-eslint/consistent-type-imports": "off",
|
|
1158
|
+
"@typescript-eslint/dot-notation": "off",
|
|
1159
|
+
"@typescript-eslint/method-signature-style": "off",
|
|
1160
|
+
"@typescript-eslint/no-array-constructor": "off",
|
|
1161
|
+
"@typescript-eslint/no-array-delete": "off",
|
|
1162
|
+
"@typescript-eslint/no-base-to-string": "off",
|
|
1163
|
+
"@typescript-eslint/no-confusing-non-null-assertion": "off",
|
|
1164
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
1165
|
+
"@typescript-eslint/no-deprecated": "off",
|
|
1166
|
+
"@typescript-eslint/no-duplicate-enum-values": "off",
|
|
1167
|
+
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
1168
|
+
"@typescript-eslint/no-dynamic-delete": "off",
|
|
1169
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
1170
|
+
"@typescript-eslint/no-empty-object-type": "off",
|
|
1171
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
1172
|
+
"@typescript-eslint/no-extra-non-null-assertion": "off",
|
|
1173
|
+
"@typescript-eslint/no-extraneous-class": "off",
|
|
1174
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
1175
|
+
"@typescript-eslint/no-for-in-array": "off",
|
|
1176
|
+
"@typescript-eslint/no-implied-eval": "off",
|
|
1177
|
+
"@typescript-eslint/no-import-type-side-effects": "off",
|
|
1178
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
1179
|
+
"@typescript-eslint/no-invalid-void-type": "off",
|
|
1180
|
+
"@typescript-eslint/no-meaningless-void-operator": "off",
|
|
1181
|
+
"@typescript-eslint/no-misused-new": "off",
|
|
1182
|
+
"@typescript-eslint/no-misused-promises": "off",
|
|
1183
|
+
"@typescript-eslint/no-misused-spread": "off",
|
|
1184
|
+
"@typescript-eslint/no-mixed-enums": "off",
|
|
1185
|
+
"@typescript-eslint/no-namespace": "off",
|
|
1186
|
+
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "off",
|
|
1187
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
|
|
1188
|
+
"@typescript-eslint/no-non-null-assertion": "off",
|
|
1189
|
+
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
1190
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
1191
|
+
"@typescript-eslint/no-shadow": "off",
|
|
1192
|
+
"@typescript-eslint/no-this-alias": "off",
|
|
1193
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
1194
|
+
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
1195
|
+
"@typescript-eslint/no-unnecessary-parameter-property-assignment": "off",
|
|
1196
|
+
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
1197
|
+
"@typescript-eslint/no-unnecessary-template-expression": "off",
|
|
1198
|
+
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
1199
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
1200
|
+
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
|
1201
|
+
"@typescript-eslint/no-unnecessary-type-conversion": "off",
|
|
1202
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
1203
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
1204
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
1205
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
1206
|
+
"@typescript-eslint/no-unsafe-declaration-merging": "off",
|
|
1207
|
+
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
1208
|
+
"@typescript-eslint/no-unsafe-function-type": "off",
|
|
1209
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1210
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
1211
|
+
"@typescript-eslint/no-unsafe-type-assertion": "off",
|
|
1212
|
+
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
1213
|
+
"@typescript-eslint/no-unused-expressions": "off",
|
|
1214
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
1215
|
+
"@typescript-eslint/no-useless-constructor": "off",
|
|
1216
|
+
"@typescript-eslint/no-useless-default-assignment": "off",
|
|
1217
|
+
"@typescript-eslint/no-useless-empty-export": "off",
|
|
1218
|
+
"@typescript-eslint/no-wrapper-object-types": "off",
|
|
1219
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1220
|
+
"@typescript-eslint/only-throw-error": "off",
|
|
1221
|
+
"@typescript-eslint/prefer-as-const": "off",
|
|
1222
|
+
"@typescript-eslint/prefer-find": "off",
|
|
1223
|
+
"@typescript-eslint/prefer-for-of": "off",
|
|
1224
|
+
"@typescript-eslint/prefer-function-type": "off",
|
|
1225
|
+
"@typescript-eslint/prefer-includes": "off",
|
|
1226
|
+
"@typescript-eslint/prefer-literal-enum-member": "off",
|
|
1227
|
+
"@typescript-eslint/prefer-namespace-keyword": "off",
|
|
1228
|
+
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
1229
|
+
"@typescript-eslint/prefer-optional-chain": "off",
|
|
1230
|
+
"@typescript-eslint/prefer-promise-reject-errors": "off",
|
|
1231
|
+
"@typescript-eslint/prefer-readonly": "off",
|
|
1232
|
+
"@typescript-eslint/prefer-reduce-type-parameter": "off",
|
|
1233
|
+
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
1234
|
+
"@typescript-eslint/prefer-return-this-type": "off",
|
|
1235
|
+
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
1236
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
1237
|
+
"@typescript-eslint/related-getter-setter-pairs": "off",
|
|
1238
|
+
"@typescript-eslint/require-array-sort-compare": "off",
|
|
1239
|
+
"@typescript-eslint/require-await": "off",
|
|
1240
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
1241
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
|
1242
|
+
"@typescript-eslint/return-await": "off",
|
|
1243
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
1244
|
+
"@typescript-eslint/strict-void-return": "off",
|
|
1245
|
+
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
1246
|
+
"@typescript-eslint/triple-slash-reference": "off",
|
|
1247
|
+
"@typescript-eslint/unbound-method": "off",
|
|
1248
|
+
"@typescript-eslint/unified-signatures": "off",
|
|
1249
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
1250
|
+
"dot-notation": "off",
|
|
1251
|
+
"no-array-constructor": "off",
|
|
1252
|
+
"no-empty-function": "off",
|
|
1253
|
+
"no-implied-eval": "off",
|
|
1254
|
+
"no-return-await": "off",
|
|
1255
|
+
"no-shadow": "off",
|
|
1256
|
+
"no-throw-literal": "off",
|
|
1257
|
+
"no-useless-constructor": "off",
|
|
1258
|
+
"prefer-promise-reject-errors": "off",
|
|
1259
|
+
"require-await": "off",
|
|
1260
|
+
"strict": "off",
|
|
1261
|
+
"unicode-bom": "off"
|
|
1262
|
+
},
|
|
970
1263
|
...mdxPlugin.flatCodeBlocks.rules,
|
|
971
1264
|
"eol-last": "off",
|
|
972
1265
|
"no-undef": "off",
|