eslint-config-setup 0.3.3 → 0.5.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.
@@ -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 *.ts files
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
- "minimumDescriptionLength": 10
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": "error",
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": "inline-type-imports"
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": "error",
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": "error",
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
- "prefer-inline": true
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": "error",
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": "error",
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": "error",
530
+ "prefer-template": "warn",
452
531
  "preserve-caught-error": "error",
453
532
  "radix": "error",
454
533
  "regexp/confusing-quantifier": "warn",
@@ -565,15 +644,31 @@ 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
+ "ignore": [
658
+ "__tests__"
659
+ ]
660
+ }
661
+ ],
569
662
  "unicorn/new-for-builtins": "error",
570
663
  "unicorn/no-abusive-eslint-disable": "error",
571
664
  "unicorn/no-accessor-recursion": "error",
572
665
  "unicorn/no-anonymous-default-export": "error",
573
666
  "unicorn/no-array-callback-reference": "error",
574
667
  "unicorn/no-array-method-this-argument": "error",
668
+ "unicorn/no-array-reduce": "warn",
575
669
  "unicorn/no-await-expression-member": "error",
576
670
  "unicorn/no-await-in-promise-methods": "error",
671
+ "unicorn/no-for-loop": "warn",
577
672
  "unicorn/no-instanceof-builtins": "error",
578
673
  "unicorn/no-invalid-fetch-options": "error",
579
674
  "unicorn/no-invalid-remove-event-listener": "error",
@@ -591,7 +686,12 @@ export default [
591
686
  "unicorn/no-useless-length-check": "error",
592
687
  "unicorn/no-useless-promise-resolve-reject": "error",
593
688
  "unicorn/no-useless-spread": "error",
594
- "unicorn/no-useless-undefined": "error",
689
+ "unicorn/no-useless-undefined": [
690
+ "warn",
691
+ {
692
+ "checkArguments": false
693
+ }
694
+ ],
595
695
  "unicorn/no-zero-fractions": "error",
596
696
  "unicorn/numeric-separators-style": "error",
597
697
  "unicorn/prefer-array-find": "error",
@@ -601,10 +701,11 @@ export default [
601
701
  "unicorn/prefer-array-some": "error",
602
702
  "unicorn/prefer-at": "error",
603
703
  "unicorn/prefer-date-now": "error",
704
+ "unicorn/prefer-dom-node-dataset": "error",
604
705
  "unicorn/prefer-export-from": [
605
706
  "error",
606
707
  {
607
- "ignoreUsedVariables": true
708
+ "checkUsedVariables": false
608
709
  }
609
710
  ],
610
711
  "unicorn/prefer-global-this": "error",
@@ -632,8 +733,19 @@ export default [
632
733
  "unicorn/text-encoding-identifier-case": "error",
633
734
  "unicorn/throw-new-error": "error",
634
735
  "unused-imports/no-unused-imports": "error",
635
- "use-isnan": "error",
636
- "valid-typeof": "error",
736
+ "use-isnan": [
737
+ "error",
738
+ {
739
+ "enforceForIndexOf": true,
740
+ "enforceForSwitchCase": true
741
+ }
742
+ ],
743
+ "valid-typeof": [
744
+ "error",
745
+ {
746
+ "requireStringLiterals": true
747
+ }
748
+ ],
637
749
  "yoda": "error"
638
750
  },
639
751
  },
@@ -643,46 +755,91 @@ export default [
643
755
  name: "eslint-config-setup/js-compat",
644
756
  files: ["**/*.{js,mjs,cjs}"],
645
757
  rules: {
758
+ "@typescript-eslint/adjacent-overload-signatures": "off",
759
+ "@typescript-eslint/array-type": "off",
646
760
  "@typescript-eslint/await-thenable": "off",
761
+ "@typescript-eslint/ban-ts-comment": "off",
762
+ "@typescript-eslint/ban-tslint-comment": "off",
763
+ "@typescript-eslint/class-literal-property-style": "off",
764
+ "@typescript-eslint/consistent-generic-constructors": "off",
765
+ "@typescript-eslint/consistent-indexed-object-style": "off",
647
766
  "@typescript-eslint/consistent-return": "off",
767
+ "@typescript-eslint/consistent-type-assertions": "off",
768
+ "@typescript-eslint/consistent-type-definitions": "off",
648
769
  "@typescript-eslint/consistent-type-exports": "off",
770
+ "@typescript-eslint/consistent-type-imports": "off",
649
771
  "@typescript-eslint/dot-notation": "off",
772
+ "@typescript-eslint/method-signature-style": "off",
650
773
  "@typescript-eslint/naming-convention": "off",
774
+ "@typescript-eslint/no-array-constructor": "off",
651
775
  "@typescript-eslint/no-array-delete": "off",
652
776
  "@typescript-eslint/no-base-to-string": "off",
777
+ "@typescript-eslint/no-confusing-non-null-assertion": "off",
653
778
  "@typescript-eslint/no-confusing-void-expression": "off",
654
779
  "@typescript-eslint/no-deprecated": "off",
780
+ "@typescript-eslint/no-duplicate-enum-values": "off",
655
781
  "@typescript-eslint/no-duplicate-type-constituents": "off",
782
+ "@typescript-eslint/no-dynamic-delete": "off",
783
+ "@typescript-eslint/no-empty-function": "off",
784
+ "@typescript-eslint/no-empty-object-type": "off",
785
+ "@typescript-eslint/no-explicit-any": "off",
786
+ "@typescript-eslint/no-extra-non-null-assertion": "off",
787
+ "@typescript-eslint/no-extraneous-class": "off",
656
788
  "@typescript-eslint/no-floating-promises": "off",
657
789
  "@typescript-eslint/no-for-in-array": "off",
658
790
  "@typescript-eslint/no-implied-eval": "off",
791
+ "@typescript-eslint/no-import-type-side-effects": "off",
792
+ "@typescript-eslint/no-inferrable-types": "off",
793
+ "@typescript-eslint/no-invalid-void-type": "off",
659
794
  "@typescript-eslint/no-meaningless-void-operator": "off",
795
+ "@typescript-eslint/no-misused-new": "off",
660
796
  "@typescript-eslint/no-misused-promises": "off",
661
797
  "@typescript-eslint/no-misused-spread": "off",
662
798
  "@typescript-eslint/no-mixed-enums": "off",
799
+ "@typescript-eslint/no-namespace": "off",
800
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "off",
801
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "off",
802
+ "@typescript-eslint/no-non-null-assertion": "off",
663
803
  "@typescript-eslint/no-redundant-type-constituents": "off",
804
+ "@typescript-eslint/no-require-imports": "off",
805
+ "@typescript-eslint/no-shadow": "off",
806
+ "@typescript-eslint/no-this-alias": "off",
664
807
  "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
665
808
  "@typescript-eslint/no-unnecessary-condition": "off",
809
+ "@typescript-eslint/no-unnecessary-parameter-property-assignment": "off",
666
810
  "@typescript-eslint/no-unnecessary-qualifier": "off",
667
811
  "@typescript-eslint/no-unnecessary-template-expression": "off",
668
812
  "@typescript-eslint/no-unnecessary-type-arguments": "off",
669
813
  "@typescript-eslint/no-unnecessary-type-assertion": "off",
814
+ "@typescript-eslint/no-unnecessary-type-constraint": "off",
670
815
  "@typescript-eslint/no-unnecessary-type-conversion": "off",
671
816
  "@typescript-eslint/no-unnecessary-type-parameters": "off",
672
817
  "@typescript-eslint/no-unsafe-argument": "off",
673
818
  "@typescript-eslint/no-unsafe-assignment": "off",
674
819
  "@typescript-eslint/no-unsafe-call": "off",
820
+ "@typescript-eslint/no-unsafe-declaration-merging": "off",
675
821
  "@typescript-eslint/no-unsafe-enum-comparison": "off",
822
+ "@typescript-eslint/no-unsafe-function-type": "off",
676
823
  "@typescript-eslint/no-unsafe-member-access": "off",
677
824
  "@typescript-eslint/no-unsafe-return": "off",
678
825
  "@typescript-eslint/no-unsafe-type-assertion": "off",
679
826
  "@typescript-eslint/no-unsafe-unary-minus": "off",
827
+ "@typescript-eslint/no-unused-expressions": "off",
828
+ "@typescript-eslint/no-unused-vars": "off",
829
+ "@typescript-eslint/no-useless-constructor": "off",
680
830
  "@typescript-eslint/no-useless-default-assignment": "off",
831
+ "@typescript-eslint/no-useless-empty-export": "off",
832
+ "@typescript-eslint/no-wrapper-object-types": "off",
681
833
  "@typescript-eslint/non-nullable-type-assertion-style": "off",
682
834
  "@typescript-eslint/only-throw-error": "off",
835
+ "@typescript-eslint/prefer-as-const": "off",
683
836
  "@typescript-eslint/prefer-destructuring": "off",
684
837
  "@typescript-eslint/prefer-find": "off",
838
+ "@typescript-eslint/prefer-for-of": "off",
839
+ "@typescript-eslint/prefer-function-type": "off",
685
840
  "@typescript-eslint/prefer-includes": "off",
841
+ "@typescript-eslint/prefer-literal-enum-member": "off",
842
+ "@typescript-eslint/prefer-namespace-keyword": "off",
686
843
  "@typescript-eslint/prefer-nullish-coalescing": "off",
687
844
  "@typescript-eslint/prefer-optional-chain": "off",
688
845
  "@typescript-eslint/prefer-promise-reject-errors": "off",
@@ -702,33 +859,47 @@ export default [
702
859
  "@typescript-eslint/strict-boolean-expressions": "off",
703
860
  "@typescript-eslint/strict-void-return": "off",
704
861
  "@typescript-eslint/switch-exhaustiveness-check": "off",
862
+ "@typescript-eslint/triple-slash-reference": "off",
705
863
  "@typescript-eslint/unbound-method": "off",
864
+ "@typescript-eslint/unified-signatures": "off",
706
865
  "@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
707
866
  "constructor-super": "error",
867
+ "dot-notation": "off",
708
868
  "getter-return": "error",
869
+ "no-array-constructor": "off",
709
870
  "no-class-assign": "error",
710
871
  "no-const-assign": "error",
711
872
  "no-dupe-args": "error",
712
873
  "no-dupe-class-members": "error",
713
874
  "no-dupe-keys": "error",
875
+ "no-empty-function": "off",
714
876
  "no-func-assign": "error",
877
+ "no-implied-eval": "off",
715
878
  "no-import-assign": "error",
716
879
  "no-new-native-nonconstructor": "error",
717
880
  "no-new-symbol": "off",
718
881
  "no-obj-calls": "error",
719
882
  "no-redeclare": "error",
883
+ "no-return-await": "off",
720
884
  "no-setter-return": "error",
885
+ "no-shadow": "off",
721
886
  "no-this-before-super": "error",
887
+ "no-throw-literal": "off",
722
888
  "no-undef": "error",
723
889
  "no-unreachable": "error",
724
890
  "no-unsafe-negation": "error",
891
+ "no-unused-expressions": "off",
892
+ "no-unused-vars": "error",
893
+ "no-useless-constructor": "off",
725
894
  "no-with": "error",
726
895
  "prefer-const": [
727
896
  "error",
728
897
  {
729
898
  "destructuring": "all"
730
899
  }
731
- ]
900
+ ],
901
+ "prefer-promise-reject-errors": "off",
902
+ "require-await": "off"
732
903
  },
733
904
  },
734
905
 
@@ -966,7 +1137,132 @@ export default [
966
1137
  // Markdown/MDX code block linting
967
1138
  {
968
1139
  ...mdxPlugin.flatCodeBlocks,
1140
+ languageOptions: {
1141
+ ...mdxPlugin.flatCodeBlocks.languageOptions,
1142
+ parserOptions: {
1143
+ ...mdxPlugin.flatCodeBlocks.languageOptions?.parserOptions,
1144
+ projectService: false,
1145
+ },
1146
+ },
969
1147
  rules: {
1148
+ ...{
1149
+ "@typescript-eslint/adjacent-overload-signatures": "off",
1150
+ "@typescript-eslint/array-type": "off",
1151
+ "@typescript-eslint/await-thenable": "off",
1152
+ "@typescript-eslint/ban-ts-comment": "off",
1153
+ "@typescript-eslint/ban-tslint-comment": "off",
1154
+ "@typescript-eslint/class-literal-property-style": "off",
1155
+ "@typescript-eslint/consistent-generic-constructors": "off",
1156
+ "@typescript-eslint/consistent-indexed-object-style": "off",
1157
+ "@typescript-eslint/consistent-type-assertions": "off",
1158
+ "@typescript-eslint/consistent-type-definitions": "off",
1159
+ "@typescript-eslint/consistent-type-exports": "off",
1160
+ "@typescript-eslint/consistent-type-imports": "off",
1161
+ "@typescript-eslint/dot-notation": "off",
1162
+ "@typescript-eslint/method-signature-style": "off",
1163
+ "@typescript-eslint/no-array-constructor": "off",
1164
+ "@typescript-eslint/no-array-delete": "off",
1165
+ "@typescript-eslint/no-base-to-string": "off",
1166
+ "@typescript-eslint/no-confusing-non-null-assertion": "off",
1167
+ "@typescript-eslint/no-confusing-void-expression": "off",
1168
+ "@typescript-eslint/no-deprecated": "off",
1169
+ "@typescript-eslint/no-duplicate-enum-values": "off",
1170
+ "@typescript-eslint/no-duplicate-type-constituents": "off",
1171
+ "@typescript-eslint/no-dynamic-delete": "off",
1172
+ "@typescript-eslint/no-empty-function": "off",
1173
+ "@typescript-eslint/no-empty-object-type": "off",
1174
+ "@typescript-eslint/no-explicit-any": "off",
1175
+ "@typescript-eslint/no-extra-non-null-assertion": "off",
1176
+ "@typescript-eslint/no-extraneous-class": "off",
1177
+ "@typescript-eslint/no-floating-promises": "off",
1178
+ "@typescript-eslint/no-for-in-array": "off",
1179
+ "@typescript-eslint/no-implied-eval": "off",
1180
+ "@typescript-eslint/no-import-type-side-effects": "off",
1181
+ "@typescript-eslint/no-inferrable-types": "off",
1182
+ "@typescript-eslint/no-invalid-void-type": "off",
1183
+ "@typescript-eslint/no-meaningless-void-operator": "off",
1184
+ "@typescript-eslint/no-misused-new": "off",
1185
+ "@typescript-eslint/no-misused-promises": "off",
1186
+ "@typescript-eslint/no-misused-spread": "off",
1187
+ "@typescript-eslint/no-mixed-enums": "off",
1188
+ "@typescript-eslint/no-namespace": "off",
1189
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "off",
1190
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "off",
1191
+ "@typescript-eslint/no-non-null-assertion": "off",
1192
+ "@typescript-eslint/no-redundant-type-constituents": "off",
1193
+ "@typescript-eslint/no-require-imports": "off",
1194
+ "@typescript-eslint/no-shadow": "off",
1195
+ "@typescript-eslint/no-this-alias": "off",
1196
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
1197
+ "@typescript-eslint/no-unnecessary-condition": "off",
1198
+ "@typescript-eslint/no-unnecessary-parameter-property-assignment": "off",
1199
+ "@typescript-eslint/no-unnecessary-qualifier": "off",
1200
+ "@typescript-eslint/no-unnecessary-template-expression": "off",
1201
+ "@typescript-eslint/no-unnecessary-type-arguments": "off",
1202
+ "@typescript-eslint/no-unnecessary-type-assertion": "off",
1203
+ "@typescript-eslint/no-unnecessary-type-constraint": "off",
1204
+ "@typescript-eslint/no-unnecessary-type-conversion": "off",
1205
+ "@typescript-eslint/no-unnecessary-type-parameters": "off",
1206
+ "@typescript-eslint/no-unsafe-argument": "off",
1207
+ "@typescript-eslint/no-unsafe-assignment": "off",
1208
+ "@typescript-eslint/no-unsafe-call": "off",
1209
+ "@typescript-eslint/no-unsafe-declaration-merging": "off",
1210
+ "@typescript-eslint/no-unsafe-enum-comparison": "off",
1211
+ "@typescript-eslint/no-unsafe-function-type": "off",
1212
+ "@typescript-eslint/no-unsafe-member-access": "off",
1213
+ "@typescript-eslint/no-unsafe-return": "off",
1214
+ "@typescript-eslint/no-unsafe-type-assertion": "off",
1215
+ "@typescript-eslint/no-unsafe-unary-minus": "off",
1216
+ "@typescript-eslint/no-unused-expressions": "off",
1217
+ "@typescript-eslint/no-unused-vars": "off",
1218
+ "@typescript-eslint/no-useless-constructor": "off",
1219
+ "@typescript-eslint/no-useless-default-assignment": "off",
1220
+ "@typescript-eslint/no-useless-empty-export": "off",
1221
+ "@typescript-eslint/no-wrapper-object-types": "off",
1222
+ "@typescript-eslint/non-nullable-type-assertion-style": "off",
1223
+ "@typescript-eslint/only-throw-error": "off",
1224
+ "@typescript-eslint/prefer-as-const": "off",
1225
+ "@typescript-eslint/prefer-find": "off",
1226
+ "@typescript-eslint/prefer-for-of": "off",
1227
+ "@typescript-eslint/prefer-function-type": "off",
1228
+ "@typescript-eslint/prefer-includes": "off",
1229
+ "@typescript-eslint/prefer-literal-enum-member": "off",
1230
+ "@typescript-eslint/prefer-namespace-keyword": "off",
1231
+ "@typescript-eslint/prefer-nullish-coalescing": "off",
1232
+ "@typescript-eslint/prefer-optional-chain": "off",
1233
+ "@typescript-eslint/prefer-promise-reject-errors": "off",
1234
+ "@typescript-eslint/prefer-readonly": "off",
1235
+ "@typescript-eslint/prefer-reduce-type-parameter": "off",
1236
+ "@typescript-eslint/prefer-regexp-exec": "off",
1237
+ "@typescript-eslint/prefer-return-this-type": "off",
1238
+ "@typescript-eslint/prefer-string-starts-ends-with": "off",
1239
+ "@typescript-eslint/promise-function-async": "off",
1240
+ "@typescript-eslint/related-getter-setter-pairs": "off",
1241
+ "@typescript-eslint/require-array-sort-compare": "off",
1242
+ "@typescript-eslint/require-await": "off",
1243
+ "@typescript-eslint/restrict-plus-operands": "off",
1244
+ "@typescript-eslint/restrict-template-expressions": "off",
1245
+ "@typescript-eslint/return-await": "off",
1246
+ "@typescript-eslint/strict-boolean-expressions": "off",
1247
+ "@typescript-eslint/strict-void-return": "off",
1248
+ "@typescript-eslint/switch-exhaustiveness-check": "off",
1249
+ "@typescript-eslint/triple-slash-reference": "off",
1250
+ "@typescript-eslint/unbound-method": "off",
1251
+ "@typescript-eslint/unified-signatures": "off",
1252
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
1253
+ "dot-notation": "off",
1254
+ "no-array-constructor": "off",
1255
+ "no-empty-function": "off",
1256
+ "no-implied-eval": "off",
1257
+ "no-return-await": "off",
1258
+ "no-shadow": "off",
1259
+ "no-throw-literal": "off",
1260
+ "no-useless-constructor": "off",
1261
+ "prefer-promise-reject-errors": "off",
1262
+ "require-await": "off",
1263
+ "strict": "off",
1264
+ "unicode-bom": "off"
1265
+ },
970
1266
  ...mdxPlugin.flatCodeBlocks.rules,
971
1267
  "eol-last": "off",
972
1268
  "no-undef": "off",