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/4eb62e57.js
CHANGED
|
@@ -7,7 +7,6 @@ import globals from "globals"
|
|
|
7
7
|
import importXPlugin from "eslint-plugin-import-x"
|
|
8
8
|
import jsdocPlugin from "eslint-plugin-jsdoc"
|
|
9
9
|
import jsonPlugin from "@eslint/json"
|
|
10
|
-
import jsxA11yPlugin from "eslint-plugin-jsx-a11y"
|
|
11
10
|
import nodePlugin from "eslint-plugin-n"
|
|
12
11
|
import oxlintPlugin from "eslint-plugin-oxlint"
|
|
13
12
|
import packageJsonPlugin from "eslint-plugin-package-json"
|
|
@@ -27,16 +26,16 @@ export default [
|
|
|
27
26
|
// TypeScript parser setup
|
|
28
27
|
...tseslint.configs.strictTypeChecked.slice(0, 2),
|
|
29
28
|
|
|
30
|
-
// Base rules — all effective rules for
|
|
29
|
+
// Base rules — all effective rules for TS plus shared JS/TS rules
|
|
31
30
|
{
|
|
32
31
|
name: "eslint-config-setup/base",
|
|
32
|
+
ignores: ["**/*.{md,mdx}"],
|
|
33
33
|
plugins: {
|
|
34
34
|
"@cspell": cspellPlugin,
|
|
35
35
|
"@typescript-eslint": tseslint.plugin,
|
|
36
36
|
"de-morgan": deMorganPlugin,
|
|
37
37
|
"import": importXPlugin,
|
|
38
38
|
"jsdoc": jsdocPlugin,
|
|
39
|
-
"jsx-a11y": jsxA11yPlugin,
|
|
40
39
|
"node": nodePlugin,
|
|
41
40
|
"perfectionist": perfectionistPlugin,
|
|
42
41
|
"regexp": regexpPlugin,
|
|
@@ -72,7 +71,6 @@ export default [
|
|
|
72
71
|
}
|
|
73
72
|
],
|
|
74
73
|
"@typescript-eslint/dot-notation": "error",
|
|
75
|
-
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
76
74
|
"@typescript-eslint/member-ordering": [
|
|
77
75
|
"warn",
|
|
78
76
|
{
|
|
@@ -366,13 +364,22 @@ export default [
|
|
|
366
364
|
"de-morgan/no-negated-conjunction": "error",
|
|
367
365
|
"de-morgan/no-negated-disjunction": "error",
|
|
368
366
|
"default-case-last": "error",
|
|
369
|
-
"eqeqeq":
|
|
367
|
+
"eqeqeq": [
|
|
368
|
+
"error",
|
|
369
|
+
"smart"
|
|
370
|
+
],
|
|
370
371
|
"grouped-accessor-pairs": [
|
|
371
372
|
"error",
|
|
372
373
|
"getBeforeSet"
|
|
373
374
|
],
|
|
374
375
|
"guard-for-in": "error",
|
|
375
376
|
"import/newline-after-import": "error",
|
|
377
|
+
"import/no-extraneous-dependencies": [
|
|
378
|
+
"error",
|
|
379
|
+
{
|
|
380
|
+
"includeTypes": true
|
|
381
|
+
}
|
|
382
|
+
],
|
|
376
383
|
"import/no-useless-path-segments": "error",
|
|
377
384
|
"jsdoc/check-alignment": "error",
|
|
378
385
|
"jsdoc/check-param-names": "error",
|
|
@@ -393,8 +400,6 @@ export default [
|
|
|
393
400
|
"jsdoc/require-yields-type": "error",
|
|
394
401
|
"jsdoc/ts-no-empty-object-type": "error",
|
|
395
402
|
"jsdoc/valid-types": "error",
|
|
396
|
-
"jsx-a11y/interactive-supports-focus": "error",
|
|
397
|
-
"jsx-a11y/no-noninteractive-element-interactions": "error",
|
|
398
403
|
"logical-assignment-operators": [
|
|
399
404
|
"error",
|
|
400
405
|
"always",
|
|
@@ -417,7 +422,7 @@ export default [
|
|
|
417
422
|
"max-lines-per-function": [
|
|
418
423
|
"error",
|
|
419
424
|
{
|
|
420
|
-
"max":
|
|
425
|
+
"max": 100,
|
|
421
426
|
"skipBlankLines": true,
|
|
422
427
|
"skipComments": true
|
|
423
428
|
}
|
|
@@ -449,6 +454,7 @@ export default [
|
|
|
449
454
|
"no-extra-bind": "error",
|
|
450
455
|
"no-fallthrough": "error",
|
|
451
456
|
"no-implicit-coercion": "error",
|
|
457
|
+
"no-implicit-globals": "error",
|
|
452
458
|
"no-labels": "error",
|
|
453
459
|
"no-lone-blocks": "error",
|
|
454
460
|
"no-lonely-if": "error",
|
|
@@ -478,18 +484,29 @@ export default [
|
|
|
478
484
|
],
|
|
479
485
|
"no-script-url": "error",
|
|
480
486
|
"no-self-compare": "error",
|
|
481
|
-
"no-sequences":
|
|
487
|
+
"no-sequences": [
|
|
488
|
+
"error",
|
|
489
|
+
{
|
|
490
|
+
"allowInParentheses": false
|
|
491
|
+
}
|
|
492
|
+
],
|
|
482
493
|
"no-template-curly-in-string": "error",
|
|
483
494
|
"no-unmodified-loop-condition": "error",
|
|
484
495
|
"no-unneeded-ternary": "error",
|
|
485
496
|
"no-unreachable-loop": "error",
|
|
486
497
|
"no-useless-assignment": "error",
|
|
487
498
|
"no-useless-call": "error",
|
|
488
|
-
"no-useless-computed-key":
|
|
499
|
+
"no-useless-computed-key": [
|
|
500
|
+
"error",
|
|
501
|
+
{
|
|
502
|
+
"enforceForClassMembers": true
|
|
503
|
+
}
|
|
504
|
+
],
|
|
489
505
|
"no-useless-concat": "error",
|
|
490
506
|
"no-useless-return": "error",
|
|
491
507
|
"no-var": "error",
|
|
492
508
|
"no-warning-comments": "warn",
|
|
509
|
+
"node/handle-callback-err": "error",
|
|
493
510
|
"node/hashbang": "error",
|
|
494
511
|
"node/no-deprecated-api": "error",
|
|
495
512
|
"node/no-exports-assign": "error",
|
|
@@ -518,10 +535,12 @@ export default [
|
|
|
518
535
|
],
|
|
519
536
|
"node/prefer-promises/dns": "error",
|
|
520
537
|
"node/prefer-promises/fs": "error",
|
|
538
|
+
"node/process-exit-as-throw": "error",
|
|
521
539
|
"object-shorthand": [
|
|
522
540
|
"error",
|
|
523
541
|
"always",
|
|
524
542
|
{
|
|
543
|
+
"avoidExplicitReturnArrows": true,
|
|
525
544
|
"avoidQuotes": true
|
|
526
545
|
}
|
|
527
546
|
],
|
|
@@ -556,14 +575,10 @@ export default [
|
|
|
556
575
|
"allowNamedFunctions": true
|
|
557
576
|
}
|
|
558
577
|
],
|
|
559
|
-
"prefer-const":
|
|
560
|
-
"error",
|
|
561
|
-
{
|
|
562
|
-
"destructuring": "all"
|
|
563
|
-
}
|
|
564
|
-
],
|
|
578
|
+
"prefer-const": "error",
|
|
565
579
|
"prefer-exponentiation-operator": "error",
|
|
566
580
|
"prefer-named-capture-group": "error",
|
|
581
|
+
"prefer-numeric-literals": "error",
|
|
567
582
|
"prefer-object-has-own": "error",
|
|
568
583
|
"prefer-object-spread": "error",
|
|
569
584
|
"prefer-regex-literals": "error",
|
|
@@ -699,7 +714,6 @@ export default [
|
|
|
699
714
|
"sonarjs/public-static-readonly": "error",
|
|
700
715
|
"sonarjs/reduce-initial-value": "error",
|
|
701
716
|
"symbol-description": "error",
|
|
702
|
-
"unicorn/custom-error-definition": "error",
|
|
703
717
|
"unicorn/no-array-push-push": "error",
|
|
704
718
|
"unicorn/no-for-loop": "error",
|
|
705
719
|
"unicorn/prefer-export-from": [
|
|
@@ -708,7 +722,6 @@ export default [
|
|
|
708
722
|
"ignoreUsedVariables": true
|
|
709
723
|
}
|
|
710
724
|
],
|
|
711
|
-
"unicorn/prefer-import-meta-properties": "error",
|
|
712
725
|
"unicorn/prefer-switch": [
|
|
713
726
|
"error",
|
|
714
727
|
{
|
|
@@ -728,12 +741,17 @@ export default [
|
|
|
728
741
|
rules: {
|
|
729
742
|
"@typescript-eslint/await-thenable": "off",
|
|
730
743
|
"@typescript-eslint/consistent-return": "off",
|
|
744
|
+
"@typescript-eslint/consistent-type-exports": "off",
|
|
731
745
|
"@typescript-eslint/dot-notation": "off",
|
|
746
|
+
"@typescript-eslint/member-ordering": "off",
|
|
747
|
+
"@typescript-eslint/method-signature-style": "off",
|
|
748
|
+
"@typescript-eslint/naming-convention": "off",
|
|
732
749
|
"@typescript-eslint/no-array-delete": "off",
|
|
733
750
|
"@typescript-eslint/no-base-to-string": "off",
|
|
734
751
|
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
735
752
|
"@typescript-eslint/no-deprecated": "off",
|
|
736
753
|
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
754
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
737
755
|
"@typescript-eslint/no-for-in-array": "off",
|
|
738
756
|
"@typescript-eslint/no-implied-eval": "off",
|
|
739
757
|
"@typescript-eslint/no-meaningless-void-operator": "off",
|
|
@@ -755,6 +773,7 @@ export default [
|
|
|
755
773
|
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
756
774
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
757
775
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
776
|
+
"@typescript-eslint/no-unsafe-type-assertion": "off",
|
|
758
777
|
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
759
778
|
"@typescript-eslint/no-useless-default-assignment": "off",
|
|
760
779
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
@@ -765,26 +784,46 @@ export default [
|
|
|
765
784
|
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
766
785
|
"@typescript-eslint/prefer-optional-chain": "off",
|
|
767
786
|
"@typescript-eslint/prefer-promise-reject-errors": "off",
|
|
787
|
+
"@typescript-eslint/prefer-readonly": "off",
|
|
768
788
|
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
769
789
|
"@typescript-eslint/prefer-reduce-type-parameter": "off",
|
|
770
790
|
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
771
791
|
"@typescript-eslint/prefer-return-this-type": "off",
|
|
772
792
|
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
793
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
773
794
|
"@typescript-eslint/related-getter-setter-pairs": "off",
|
|
795
|
+
"@typescript-eslint/require-array-sort-compare": "off",
|
|
774
796
|
"@typescript-eslint/require-await": "off",
|
|
775
797
|
"@typescript-eslint/restrict-plus-operands": "off",
|
|
776
798
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
777
799
|
"@typescript-eslint/return-await": "off",
|
|
778
800
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
779
801
|
"@typescript-eslint/strict-void-return": "off",
|
|
802
|
+
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
780
803
|
"@typescript-eslint/unbound-method": "off",
|
|
781
804
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
805
|
+
"dot-notation": "off",
|
|
782
806
|
"getter-return": "error",
|
|
807
|
+
"no-array-constructor": "off",
|
|
783
808
|
"no-dupe-args": "error",
|
|
809
|
+
"no-empty-function": "off",
|
|
810
|
+
"no-implied-eval": "off",
|
|
784
811
|
"no-new-symbol": "off",
|
|
785
812
|
"no-redeclare": "error",
|
|
813
|
+
"no-return-await": "off",
|
|
814
|
+
"no-shadow": "off",
|
|
815
|
+
"no-throw-literal": "off",
|
|
786
816
|
"no-undef": "error",
|
|
787
|
-
"no-unreachable": "error"
|
|
817
|
+
"no-unreachable": "error",
|
|
818
|
+
"no-useless-constructor": "off",
|
|
819
|
+
"prefer-const": [
|
|
820
|
+
"error",
|
|
821
|
+
{
|
|
822
|
+
"destructuring": "all"
|
|
823
|
+
}
|
|
824
|
+
],
|
|
825
|
+
"prefer-promise-reject-errors": "off",
|
|
826
|
+
"require-await": "off"
|
|
788
827
|
},
|
|
789
828
|
},
|
|
790
829
|
|
|
@@ -831,8 +870,7 @@ export default [
|
|
|
831
870
|
"vitest/prefer-strict-equal": "error",
|
|
832
871
|
"vitest/prefer-to-be": "error",
|
|
833
872
|
"vitest/prefer-to-have-length": "error",
|
|
834
|
-
"vitest/require-top-level-describe": "error"
|
|
835
|
-
"vitest/valid-title": "error"
|
|
873
|
+
"vitest/require-top-level-describe": "error"
|
|
836
874
|
},
|
|
837
875
|
},
|
|
838
876
|
|
|
@@ -1013,7 +1051,88 @@ export default [
|
|
|
1013
1051
|
// Markdown/MDX code block linting
|
|
1014
1052
|
{
|
|
1015
1053
|
...mdxPlugin.flatCodeBlocks,
|
|
1054
|
+
languageOptions: {
|
|
1055
|
+
...mdxPlugin.flatCodeBlocks.languageOptions,
|
|
1056
|
+
parserOptions: {
|
|
1057
|
+
...mdxPlugin.flatCodeBlocks.languageOptions?.parserOptions,
|
|
1058
|
+
projectService: false,
|
|
1059
|
+
},
|
|
1060
|
+
},
|
|
1016
1061
|
rules: {
|
|
1062
|
+
...{
|
|
1063
|
+
"@typescript-eslint/await-thenable": "off",
|
|
1064
|
+
"@typescript-eslint/consistent-type-exports": "off",
|
|
1065
|
+
"@typescript-eslint/dot-notation": "off",
|
|
1066
|
+
"@typescript-eslint/member-ordering": "off",
|
|
1067
|
+
"@typescript-eslint/method-signature-style": "off",
|
|
1068
|
+
"@typescript-eslint/naming-convention": "off",
|
|
1069
|
+
"@typescript-eslint/no-array-delete": "off",
|
|
1070
|
+
"@typescript-eslint/no-base-to-string": "off",
|
|
1071
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
1072
|
+
"@typescript-eslint/no-deprecated": "off",
|
|
1073
|
+
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
1074
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
1075
|
+
"@typescript-eslint/no-for-in-array": "off",
|
|
1076
|
+
"@typescript-eslint/no-implied-eval": "off",
|
|
1077
|
+
"@typescript-eslint/no-meaningless-void-operator": "off",
|
|
1078
|
+
"@typescript-eslint/no-misused-promises": "off",
|
|
1079
|
+
"@typescript-eslint/no-misused-spread": "off",
|
|
1080
|
+
"@typescript-eslint/no-mixed-enums": "off",
|
|
1081
|
+
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
1082
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
|
1083
|
+
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
1084
|
+
"@typescript-eslint/no-unnecessary-qualifier": "off",
|
|
1085
|
+
"@typescript-eslint/no-unnecessary-template-expression": "off",
|
|
1086
|
+
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
1087
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
1088
|
+
"@typescript-eslint/no-unnecessary-type-conversion": "off",
|
|
1089
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
1090
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
1091
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
1092
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
1093
|
+
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
1094
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1095
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
1096
|
+
"@typescript-eslint/no-unsafe-type-assertion": "off",
|
|
1097
|
+
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
1098
|
+
"@typescript-eslint/no-useless-default-assignment": "off",
|
|
1099
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1100
|
+
"@typescript-eslint/only-throw-error": "off",
|
|
1101
|
+
"@typescript-eslint/prefer-find": "off",
|
|
1102
|
+
"@typescript-eslint/prefer-includes": "off",
|
|
1103
|
+
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
1104
|
+
"@typescript-eslint/prefer-optional-chain": "off",
|
|
1105
|
+
"@typescript-eslint/prefer-promise-reject-errors": "off",
|
|
1106
|
+
"@typescript-eslint/prefer-readonly": "off",
|
|
1107
|
+
"@typescript-eslint/prefer-reduce-type-parameter": "off",
|
|
1108
|
+
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
1109
|
+
"@typescript-eslint/prefer-return-this-type": "off",
|
|
1110
|
+
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
1111
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
1112
|
+
"@typescript-eslint/related-getter-setter-pairs": "off",
|
|
1113
|
+
"@typescript-eslint/require-array-sort-compare": "off",
|
|
1114
|
+
"@typescript-eslint/require-await": "off",
|
|
1115
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
1116
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
|
1117
|
+
"@typescript-eslint/return-await": "off",
|
|
1118
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
1119
|
+
"@typescript-eslint/strict-void-return": "off",
|
|
1120
|
+
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
1121
|
+
"@typescript-eslint/unbound-method": "off",
|
|
1122
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
|
|
1123
|
+
"dot-notation": "off",
|
|
1124
|
+
"no-array-constructor": "off",
|
|
1125
|
+
"no-empty-function": "off",
|
|
1126
|
+
"no-implied-eval": "off",
|
|
1127
|
+
"no-return-await": "off",
|
|
1128
|
+
"no-shadow": "off",
|
|
1129
|
+
"no-throw-literal": "off",
|
|
1130
|
+
"no-useless-constructor": "off",
|
|
1131
|
+
"prefer-promise-reject-errors": "off",
|
|
1132
|
+
"require-await": "off",
|
|
1133
|
+
"strict": "off",
|
|
1134
|
+
"unicode-bom": "off"
|
|
1135
|
+
},
|
|
1017
1136
|
...mdxPlugin.flatCodeBlocks.rules,
|
|
1018
1137
|
"eol-last": "off",
|
|
1019
1138
|
"no-undef": "off",
|