@gooddata/eslint-config 11.19.0-alpha.9 → 11.20.0-alpha.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.
Files changed (57) hide show
  1. package/PACKAGES_V8.md +1 -2
  2. package/PACKAGES_V9.md +1 -1
  3. package/PACKAGES_V9_OXLINT.md +21 -0
  4. package/README.md +22 -0
  5. package/dist/base.js +792 -283
  6. package/dist/base.json +1049 -213
  7. package/dist/browser-esm.js +794 -285
  8. package/dist/browser-esm.json +1051 -215
  9. package/dist/browser.js +792 -283
  10. package/dist/browser.json +1049 -213
  11. package/dist/esm-react-cypress.js +715 -187
  12. package/dist/esm-react-cypress.json +1051 -204
  13. package/dist/esm-react-vitest-storybook.js +825 -297
  14. package/dist/esm-react-vitest-storybook.json +1076 -204
  15. package/dist/esm-react-vitest.js +825 -297
  16. package/dist/esm-react-vitest.json +1060 -204
  17. package/dist/esm-react.js +798 -289
  18. package/dist/esm-react.json +1051 -216
  19. package/dist/esm-vitest.js +821 -293
  20. package/dist/esm-vitest.json +1060 -203
  21. package/dist/esm.js +794 -285
  22. package/dist/esm.json +1051 -215
  23. package/dist/oxlint-base.d.ts +12 -0
  24. package/dist/oxlint-base.js +1368 -0
  25. package/dist/oxlint-browser-esm.d.ts +12 -0
  26. package/dist/oxlint-browser-esm.js +1379 -0
  27. package/dist/oxlint-browser.d.ts +12 -0
  28. package/dist/oxlint-browser.js +1373 -0
  29. package/dist/oxlint-esm-react-cypress.d.ts +12 -0
  30. package/dist/oxlint-esm-react-cypress.js +1425 -0
  31. package/dist/oxlint-esm-react-vitest-storybook.d.ts +12 -0
  32. package/dist/oxlint-esm-react-vitest-storybook.js +1484 -0
  33. package/dist/oxlint-esm-react-vitest.d.ts +12 -0
  34. package/dist/oxlint-esm-react-vitest.js +1450 -0
  35. package/dist/oxlint-esm-react.d.ts +12 -0
  36. package/dist/oxlint-esm-react.js +1425 -0
  37. package/dist/oxlint-esm-vitest.d.ts +12 -0
  38. package/dist/oxlint-esm-vitest.js +1399 -0
  39. package/dist/oxlint-esm.d.ts +12 -0
  40. package/dist/oxlint-esm.js +1374 -0
  41. package/dist/oxlint-react-cypress.d.ts +12 -0
  42. package/dist/oxlint-react-cypress.js +1425 -0
  43. package/dist/oxlint-react-vitest.d.ts +12 -0
  44. package/dist/oxlint-react-vitest.js +1450 -0
  45. package/dist/oxlint-react.d.ts +12 -0
  46. package/dist/oxlint-react.js +1425 -0
  47. package/dist/oxlint-vitest.d.ts +12 -0
  48. package/dist/oxlint-vitest.js +1393 -0
  49. package/dist/react-cypress.js +713 -185
  50. package/dist/react-cypress.json +1050 -203
  51. package/dist/react-vitest.js +823 -295
  52. package/dist/react-vitest.json +1059 -203
  53. package/dist/react.js +796 -287
  54. package/dist/react.json +1049 -214
  55. package/dist/vitest.js +819 -291
  56. package/dist/vitest.json +1059 -202
  57. package/package.json +40 -6
@@ -3,49 +3,72 @@
3
3
  "header",
4
4
  "no-barrel-files",
5
5
  "import-x",
6
- "no-only-tests",
7
6
  "sonarjs",
8
7
  "react",
9
8
  "react-hooks",
10
9
  "cypress",
11
- "chai-friendly"
12
- ],
13
- "extends": [
14
- "eslint:recommended",
15
- "plugin:import-x/recommended",
16
- "plugin:regexp/recommended",
17
- "plugin:sonarjs/recommended-legacy",
18
- "plugin:react-hooks/recommended-legacy",
19
- "plugin:cypress/recommended"
10
+ "chai-friendly",
11
+ "no-only-tests"
20
12
  ],
21
13
  "rules": {
22
- "no-console": [
23
- 2,
24
- {
25
- "allow": [
26
- "warn",
27
- "error"
28
- ]
29
- }
30
- ],
31
- "no-restricted-exports": [
32
- 2,
33
- {
34
- "restrictDefaultExports": {
35
- "direct": true,
36
- "named": true,
37
- "defaultFrom": true,
38
- "namedFrom": true,
39
- "namespaceFrom": true
40
- }
41
- }
42
- ],
43
- "no-duplicate-imports": [
44
- "error",
45
- {
46
- "includeExports": true
47
- }
48
- ],
14
+ "constructor-super": "error",
15
+ "for-direction": "error",
16
+ "getter-return": "error",
17
+ "no-async-promise-executor": "error",
18
+ "no-case-declarations": "error",
19
+ "no-class-assign": "error",
20
+ "no-compare-neg-zero": "error",
21
+ "no-cond-assign": "error",
22
+ "no-const-assign": "error",
23
+ "no-constant-binary-expression": "error",
24
+ "no-constant-condition": "error",
25
+ "no-control-regex": "error",
26
+ "no-debugger": "error",
27
+ "no-delete-var": 2,
28
+ "no-dupe-args": "error",
29
+ "no-dupe-class-members": "error",
30
+ "no-dupe-else-if": "error",
31
+ "no-dupe-keys": "error",
32
+ "no-duplicate-case": "error",
33
+ "no-empty": "error",
34
+ "no-empty-character-class": "error",
35
+ "no-empty-pattern": "error",
36
+ "no-empty-static-block": "error",
37
+ "no-ex-assign": "error",
38
+ "no-fallthrough": "error",
39
+ "no-func-assign": "error",
40
+ "no-global-assign": "error",
41
+ "no-import-assign": "error",
42
+ "no-invalid-regexp": "error",
43
+ "no-irregular-whitespace": "error",
44
+ "no-loss-of-precision": "error",
45
+ "no-misleading-character-class": "error",
46
+ "no-new-native-nonconstructor": "error",
47
+ "no-nonoctal-decimal-escape": "error",
48
+ "no-obj-calls": "error",
49
+ "no-octal": "error",
50
+ "no-prototype-builtins": "error",
51
+ "no-redeclare": "error",
52
+ "no-regex-spaces": "error",
53
+ "no-self-assign": "error",
54
+ "no-setter-return": "error",
55
+ "no-shadow-restricted-names": "error",
56
+ "no-sparse-arrays": "error",
57
+ "no-this-before-super": "error",
58
+ "no-undef": "error",
59
+ "no-unreachable": "error",
60
+ "no-unsafe-finally": "error",
61
+ "no-unsafe-negation": "error",
62
+ "no-unsafe-optional-chaining": "error",
63
+ "no-unused-labels": "error",
64
+ "no-unused-private-class-members": "error",
65
+ "no-unused-vars": "error",
66
+ "no-useless-backreference": "error",
67
+ "no-useless-catch": "error",
68
+ "no-with": "error",
69
+ "require-yield": "error",
70
+ "use-isnan": "error",
71
+ "valid-typeof": "error",
49
72
  "no-restricted-imports": [
50
73
  "error",
51
74
  {
@@ -566,17 +589,6 @@
566
589
  ]
567
590
  }
568
591
  ],
569
- "no-restricted-syntax": [
570
- "error",
571
- {
572
- "selector": "MemberExpression[object.name='React']",
573
- "message": "Do not use `React.*`. Use named imports instead."
574
- },
575
- {
576
- "selector": "MemberExpression[object.name='ReactDOM']",
577
- "message": "Do not use `ReactDOM.*`. Use named imports instead."
578
- }
579
- ],
580
592
  "sort-imports": [
581
593
  "error",
582
594
  {
@@ -586,7 +598,6 @@
586
598
  }
587
599
  ],
588
600
  "no-useless-escape": "off",
589
- "no-negated-condition": "error",
590
601
  "no-unneeded-ternary": [
591
602
  "error",
592
603
  {
@@ -595,6 +606,46 @@
595
606
  ],
596
607
  "no-extra-boolean-cast": "error",
597
608
  "no-unexpected-multiline": 0,
609
+ "no-duplicate-imports": [
610
+ "error",
611
+ {
612
+ "includeExports": true
613
+ }
614
+ ],
615
+ "prefer-const": "off",
616
+ "no-console": [
617
+ 2,
618
+ {
619
+ "allow": [
620
+ "warn",
621
+ "error"
622
+ ]
623
+ }
624
+ ],
625
+ "no-restricted-exports": [
626
+ 2,
627
+ {
628
+ "restrictDefaultExports": {
629
+ "direct": true,
630
+ "named": true,
631
+ "defaultFrom": true,
632
+ "namedFrom": true,
633
+ "namespaceFrom": true
634
+ }
635
+ }
636
+ ],
637
+ "no-restricted-syntax": [
638
+ "error",
639
+ {
640
+ "selector": "MemberExpression[object.name='React']",
641
+ "message": "Do not use `React.*`. Use named imports instead."
642
+ },
643
+ {
644
+ "selector": "MemberExpression[object.name='ReactDOM']",
645
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
646
+ }
647
+ ],
648
+ "no-negated-condition": "error",
598
649
  "header/header": [
599
650
  2,
600
651
  "line",
@@ -604,6 +655,14 @@
604
655
  }
605
656
  ],
606
657
  "no-barrel-files/no-barrel-files": "error",
658
+ "import-x/named": "error",
659
+ "import-x/namespace": "error",
660
+ "import-x/default": "error",
661
+ "import-x/export": "error",
662
+ "import-x/no-named-as-default": "warn",
663
+ "import-x/no-named-as-default-member": "warn",
664
+ "import-x/no-duplicates": "warn",
665
+ "import-x/no-unassigned-import": "error",
607
666
  "import-x/order": [
608
667
  "error",
609
668
  {
@@ -639,20 +698,210 @@
639
698
  "newlines-between": "always"
640
699
  }
641
700
  ],
642
- "import-x/no-unassigned-import": "error",
643
- "no-only-tests/no-only-tests": [
644
- "error",
645
- {
646
- "block": [
647
- "fixture"
648
- ],
649
- "focus": [
650
- "only"
651
- ]
652
- }
653
- ],
654
- "regexp/prefer-d": "off",
655
- "regexp/prefer-w": "off",
701
+ "sonarjs/function-name": "off",
702
+ "sonarjs/max-lines": "off",
703
+ "sonarjs/no-tab": "off",
704
+ "sonarjs/variable-name": "off",
705
+ "sonarjs/comment-regex": "off",
706
+ "sonarjs/elseif-without-else": "off",
707
+ "sonarjs/no-fallthrough": "error",
708
+ "sonarjs/nested-control-flow": "off",
709
+ "sonarjs/too-many-break-or-continue-in-loop": "off",
710
+ "sonarjs/max-lines-per-function": "off",
711
+ "sonarjs/no-nested-incdec": "off",
712
+ "sonarjs/no-equals-in-for-termination": "error",
713
+ "sonarjs/no-extra-arguments": "error",
714
+ "sonarjs/no-collapsible-if": "off",
715
+ "sonarjs/expression-complexity": "off",
716
+ "sonarjs/no-redundant-parentheses": "off",
717
+ "sonarjs/no-labels": "error",
718
+ "sonarjs/no-redundant-boolean": "error",
719
+ "sonarjs/prefer-single-boolean-return": "error",
720
+ "sonarjs/unused-import": "error",
721
+ "sonarjs/useless-string-operation": "off",
722
+ "sonarjs/no-unused-function-argument": "off",
723
+ "sonarjs/no-case-label-in-switch": "error",
724
+ "sonarjs/no-parameter-reassignment": "error",
725
+ "sonarjs/prefer-while": "error",
726
+ "sonarjs/no-sonar-comments": "off",
727
+ "sonarjs/no-small-switch": "error",
728
+ "sonarjs/no-hardcoded-ip": "error",
729
+ "sonarjs/label-position": "error",
730
+ "sonarjs/file-header": "off",
731
+ "sonarjs/call-argument-line": "error",
732
+ "sonarjs/max-switch-cases": "error",
733
+ "sonarjs/prefer-immediate-return": "off",
734
+ "sonarjs/function-inside-loop": "error",
735
+ "sonarjs/no-variable-usage-before-declaration": "off",
736
+ "sonarjs/future-reserved-words": "error",
737
+ "sonarjs/array-constructor": "off",
738
+ "sonarjs/bitwise-operators": "error",
739
+ "sonarjs/no-function-declaration-in-block": "off",
740
+ "sonarjs/no-primitive-wrappers": "error",
741
+ "sonarjs/for-in": "off",
742
+ "sonarjs/cyclomatic-complexity": "off",
743
+ "sonarjs/no-identical-expressions": "error",
744
+ "sonarjs/no-nested-switch": "off",
745
+ "sonarjs/no-identical-conditions": "error",
746
+ "sonarjs/no-duplicated-branches": "error",
747
+ "sonarjs/misplaced-loop-counter": "error",
748
+ "sonarjs/sql-queries": "error",
749
+ "sonarjs/insecure-cookie": "error",
750
+ "sonarjs/no-useless-increment": "error",
751
+ "sonarjs/no-undefined-assignment": "off",
752
+ "sonarjs/no-wildcard-import": "off",
753
+ "sonarjs/for-loop-increment-sign": "error",
754
+ "sonarjs/cookies": "off",
755
+ "sonarjs/null-dereference": "error",
756
+ "sonarjs/updated-loop-counter": "error",
757
+ "sonarjs/block-scoped-var": "error",
758
+ "sonarjs/no-built-in-override": "off",
759
+ "sonarjs/prefer-object-literal": "off",
760
+ "sonarjs/no-gratuitous-expressions": "error",
761
+ "sonarjs/file-uploads": "error",
762
+ "sonarjs/file-permissions": "error",
763
+ "sonarjs/no-empty-character-class": "error",
764
+ "sonarjs/no-unenclosed-multiline-block": "error",
765
+ "sonarjs/index-of-compare-to-positive-number": "error",
766
+ "sonarjs/no-useless-catch": "error",
767
+ "sonarjs/xml-parser-xxe": "error",
768
+ "sonarjs/non-existent-operator": "error",
769
+ "sonarjs/web-sql-database": "off",
770
+ "sonarjs/no-array-delete": "error",
771
+ "sonarjs/no-incomplete-assertions": "error",
772
+ "sonarjs/no-global-this": "error",
773
+ "sonarjs/new-operator-misuse": "error",
774
+ "sonarjs/no-delete-var": "error",
775
+ "sonarjs/strings-comparison": "off",
776
+ "sonarjs/file-name-differ-from-class": "off",
777
+ "sonarjs/cookie-no-httponly": "error",
778
+ "sonarjs/no-incorrect-string-concat": "off",
779
+ "sonarjs/inverted-assertion-arguments": "error",
780
+ "sonarjs/shorthand-property-grouping": "off",
781
+ "sonarjs/updated-const-var": "error",
782
+ "sonarjs/arguments-usage": "off",
783
+ "sonarjs/destructuring-assignment-syntax": "off",
784
+ "sonarjs/arrow-function-convention": "off",
785
+ "sonarjs/class-prototype": "off",
786
+ "sonarjs/no-require-or-define": "off",
787
+ "sonarjs/no-associative-arrays": "error",
788
+ "sonarjs/comma-or-logical-or-case": "error",
789
+ "sonarjs/no-redundant-jump": "error",
790
+ "sonarjs/inconsistent-function-call": "error",
791
+ "sonarjs/no-use-of-empty-return-value": "error",
792
+ "sonarjs/enforce-trailing-comma": "off",
793
+ "sonarjs/operation-returning-nan": "off",
794
+ "sonarjs/values-not-convertible-to-numbers": "off",
795
+ "sonarjs/non-number-in-arithmetic-expression": "off",
796
+ "sonarjs/in-operator-type-error": "error",
797
+ "sonarjs/declarations-in-global-scope": "off",
798
+ "sonarjs/no-inconsistent-returns": "off",
799
+ "sonarjs/no-reference-error": "off",
800
+ "sonarjs/super-invocation": "error",
801
+ "sonarjs/no-all-duplicated-branches": "error",
802
+ "sonarjs/no-same-line-conditional": "error",
803
+ "sonarjs/conditional-indentation": "off",
804
+ "sonarjs/no-collection-size-mischeck": "error",
805
+ "sonarjs/no-unthrown-error": "error",
806
+ "sonarjs/no-unused-collection": "error",
807
+ "sonarjs/no-for-in-iterable": "off",
808
+ "sonarjs/no-element-overwrite": "error",
809
+ "sonarjs/no-identical-functions": "error",
810
+ "sonarjs/no-empty-collection": "error",
811
+ "sonarjs/no-redundant-assignments": "error",
812
+ "sonarjs/prefer-type-guard": "error",
813
+ "sonarjs/no-return-type-any": "off",
814
+ "sonarjs/no-implicit-dependencies": "off",
815
+ "sonarjs/weak-ssl": "error",
816
+ "sonarjs/no-weak-keys": "error",
817
+ "sonarjs/csrf": "error",
818
+ "sonarjs/production-debug": "error",
819
+ "sonarjs/no-in-misuse": "error",
820
+ "sonarjs/no-duplicate-in-composite": "error",
821
+ "sonarjs/max-union-size": "off",
822
+ "sonarjs/no-nested-template-literals": "error",
823
+ "sonarjs/regular-expr": "off",
824
+ "sonarjs/encryption": "off",
825
+ "sonarjs/hashing": "error",
826
+ "sonarjs/bool-param-default": "off",
827
+ "sonarjs/xpath": "off",
828
+ "sonarjs/sockets": "off",
829
+ "sonarjs/process-argv": "off",
830
+ "sonarjs/standard-input": "off",
831
+ "sonarjs/unverified-certificate": "error",
832
+ "sonarjs/cors": "error",
833
+ "sonarjs/disabled-auto-escaping": "error",
834
+ "sonarjs/no-table-as-layout": "error",
835
+ "sonarjs/table-header-reference": "error",
836
+ "sonarjs/object-alt-content": "error",
837
+ "sonarjs/publicly-writable-directories": "error",
838
+ "sonarjs/unverified-hostname": "error",
839
+ "sonarjs/encryption-secure-mode": "error",
840
+ "sonarjs/no-weak-cipher": "error",
841
+ "sonarjs/no-intrusive-permissions": "error",
842
+ "sonarjs/insecure-jwt-token": "error",
843
+ "sonarjs/x-powered-by": "error",
844
+ "sonarjs/hidden-files": "error",
845
+ "sonarjs/content-length": "error",
846
+ "sonarjs/disabled-resource-integrity": "error",
847
+ "sonarjs/content-security-policy": "error",
848
+ "sonarjs/no-mixed-content": "error",
849
+ "sonarjs/frame-ancestors": "error",
850
+ "sonarjs/no-mime-sniff": "error",
851
+ "sonarjs/no-referrer-policy": "error",
852
+ "sonarjs/strict-transport-security": "error",
853
+ "sonarjs/certificate-transparency": "off",
854
+ "sonarjs/dns-prefetching": "off",
855
+ "sonarjs/confidential-information-logging": "error",
856
+ "sonarjs/no-ip-forward": "error",
857
+ "sonarjs/no-invalid-regexp": "error",
858
+ "sonarjs/unused-named-groups": "error",
859
+ "sonarjs/no-same-argument-assert": "error",
860
+ "sonarjs/unicode-aware-regex": "off",
861
+ "sonarjs/no-misleading-character-class": "error",
862
+ "sonarjs/session-regeneration": "error",
863
+ "sonarjs/test-check-exception": "error",
864
+ "sonarjs/stable-tests": "error",
865
+ "sonarjs/no-empty-after-reluctant": "error",
866
+ "sonarjs/no-code-after-done": "error",
867
+ "sonarjs/disabled-timeout": "error",
868
+ "sonarjs/chai-determinate-assertion": "error",
869
+ "sonarjs/aws-s3-bucket-server-encryption": "off",
870
+ "sonarjs/aws-s3-bucket-insecure-http": "error",
871
+ "sonarjs/aws-s3-bucket-versioning": "error",
872
+ "sonarjs/aws-s3-bucket-granted-access": "error",
873
+ "sonarjs/no-angular-bypass-sanitization": "error",
874
+ "sonarjs/aws-iam-public-access": "error",
875
+ "sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
876
+ "sonarjs/aws-s3-bucket-public-access": "error",
877
+ "sonarjs/no-vue-bypass-sanitization": "off",
878
+ "sonarjs/aws-iam-all-privileges": "error",
879
+ "sonarjs/aws-rds-unencrypted-databases": "error",
880
+ "sonarjs/aws-iam-all-resources-accessible": "off",
881
+ "sonarjs/aws-opensearchservice-domain": "error",
882
+ "sonarjs/aws-iam-privilege-escalation": "error",
883
+ "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
884
+ "sonarjs/aws-restricted-ip-admin-access": "error",
885
+ "sonarjs/no-empty-alternatives": "error",
886
+ "sonarjs/no-regex-spaces": "error",
887
+ "sonarjs/aws-sns-unencrypted-topics": "error",
888
+ "sonarjs/existing-groups": "error",
889
+ "sonarjs/aws-ec2-rds-dms-public": "error",
890
+ "sonarjs/aws-sqs-unencrypted-queue": "error",
891
+ "sonarjs/no-empty-group": "error",
892
+ "sonarjs/aws-efs-unencrypted": "error",
893
+ "sonarjs/aws-apigateway-public-api": "error",
894
+ "sonarjs/stateful-regex": "error",
895
+ "sonarjs/single-char-in-character-classes": "error",
896
+ "sonarjs/no-exclusive-tests": "error",
897
+ "sonarjs/hardcoded-secret-signatures": "error",
898
+ "sonarjs/jsx-no-leaked-render": "error",
899
+ "sonarjs/no-hook-setter-in-body": "error",
900
+ "sonarjs/no-uniq-key": "error",
901
+ "sonarjs/no-internal-api-use": "error",
902
+ "sonarjs/no-literal-call": "error",
903
+ "sonarjs/review-blockchain-mnemonic": "error",
904
+ "sonarjs/dynamically-constructed-templates": "error",
656
905
  "sonarjs/no-duplicate-string": "off",
657
906
  "sonarjs/cognitive-complexity": "warn",
658
907
  "sonarjs/todo-tag": "warn",
@@ -720,7 +969,6 @@
720
969
  "sonarjs/no-control-regex": "off",
721
970
  "no-caller": 2,
722
971
  "no-eval": 2,
723
- "no-delete-var": 2,
724
972
  "no-octal-escape": 2,
725
973
  "curly": 0,
726
974
  "@typescript-eslint/lines-around-comment": 0,
@@ -786,11 +1034,23 @@
786
1034
  "react/react-in-jsx-scope": "off",
787
1035
  "react-hooks/rules-of-hooks": "error",
788
1036
  "react-hooks/exhaustive-deps": "error",
1037
+ "cypress/no-async-tests": "error",
789
1038
  "cypress/no-unnecessary-waiting": "warn",
790
1039
  "cypress/no-assigning-return-values": "warn",
791
1040
  "cypress/unsafe-to-chain-command": "warn",
792
1041
  "no-unused-expressions": "off",
793
- "chai-friendly/no-unused-expressions": "error"
1042
+ "chai-friendly/no-unused-expressions": "error",
1043
+ "no-only-tests/no-only-tests": [
1044
+ "error",
1045
+ {
1046
+ "block": [
1047
+ "fixture"
1048
+ ],
1049
+ "focus": [
1050
+ "only"
1051
+ ]
1052
+ }
1053
+ ]
794
1054
  },
795
1055
  "overrides": [
796
1056
  {
@@ -798,18 +1058,6 @@
798
1058
  "**/*.ts",
799
1059
  "**/*.tsx"
800
1060
  ],
801
- "excludedFiles": [
802
- "**/vitest.config.ts",
803
- "**/vitest.*.config.ts",
804
- "**/vitest.setup.ts",
805
- "**/vitest.setup.tsx",
806
- "**/*.test.ts",
807
- "**/*.test.tsx",
808
- "**/*.test.utils.ts",
809
- "**/*.test.utils.tsx",
810
- "**/*.test.helpers.ts",
811
- "**/*.test.helpers.tsx"
812
- ],
813
1061
  "rules": {
814
1062
  "no-restricted-imports": [
815
1063
  "error",
@@ -1341,139 +1589,747 @@
1341
1589
  },
1342
1590
  {
1343
1591
  "files": [
1344
- "**/eslint.config.ts",
1345
- "**/eslint.config.js"
1346
- ],
1347
- "rules": {
1348
- "no-restricted-exports": "off"
1349
- }
1350
- },
1351
- {
1352
- "parser": "@typescript-eslint/parser",
1353
- "files": [
1354
- "**/*.ts",
1355
- "**/*.tsx",
1356
- "**/*.mts",
1357
- "**/*.cts"
1358
- ],
1359
- "extends": [
1360
- "plugin:@typescript-eslint/recommended-type-checked"
1592
+ "**/vitest.config.ts",
1593
+ "**/vitest.*.config.ts",
1594
+ "**/vitest.setup.ts",
1595
+ "**/vitest.setup.tsx",
1596
+ "**/*.test.ts",
1597
+ "**/*.test.tsx",
1598
+ "**/*.test.utils.ts",
1599
+ "**/*.test.utils.tsx",
1600
+ "**/*.test.helpers.ts",
1601
+ "**/*.test.helpers.tsx"
1361
1602
  ],
1362
- "parserOptions": {
1363
- "ecmaVersion": 2022,
1364
- "sourceType": "module",
1365
- "projectService": true
1366
- },
1367
1603
  "rules": {
1368
- "@typescript-eslint/explicit-function-return-type": 0,
1369
- "@typescript-eslint/no-use-before-define": 0,
1370
- "@typescript-eslint/no-empty-function": 0,
1371
- "@typescript-eslint/naming-convention": [
1372
- "error",
1373
- {
1374
- "selector": "interface",
1375
- "format": [
1376
- "PascalCase"
1377
- ],
1378
- "custom": {
1379
- "regex": "^I[A-Z]",
1380
- "match": true
1381
- }
1382
- }
1383
- ],
1384
- "@typescript-eslint/no-unused-vars": [
1385
- 2,
1386
- {
1387
- "varsIgnorePattern": "^_.*$",
1388
- "argsIgnorePattern": "^_.*$"
1389
- }
1390
- ],
1391
- "@typescript-eslint/no-explicit-any": "error",
1392
- "@typescript-eslint/array-type": "off",
1393
- "@typescript-eslint/ban-ts-comment": [
1394
- "error",
1395
- {
1396
- "ts-expect-error": "allow-with-description"
1397
- }
1398
- ],
1399
- "@typescript-eslint/no-wrapper-object-types": "error",
1400
- "@typescript-eslint/no-unsafe-function-type": "error",
1401
- "@typescript-eslint/no-restricted-types": [
1604
+ "no-restricted-imports": [
1402
1605
  "error",
1403
1606
  {
1404
- "types": {
1405
- "String": {
1406
- "message": "Use 'string' instead",
1407
- "fixWith": "string"
1607
+ "paths": [
1608
+ {
1609
+ "name": "react",
1610
+ "importNames": [
1611
+ "default"
1612
+ ],
1613
+ "message": "Default import from React is not allowed. Use named imports instead."
1408
1614
  },
1409
- "Number": {
1410
- "message": "Use 'number' instead",
1411
- "fixWith": "number"
1615
+ {
1616
+ "name": "react-dom",
1617
+ "importNames": [
1618
+ "default"
1619
+ ],
1620
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1412
1621
  },
1413
- "Boolean": {
1414
- "message": "Use 'boolean' instead",
1415
- "fixWith": "boolean"
1622
+ {
1623
+ "name": "@gooddata/sdk-ui-kit",
1624
+ "importNames": [
1625
+ "Icon"
1626
+ ],
1627
+ "message": "The Icon export cannot be tree-shaken, use {IconName}Icon imports instead."
1416
1628
  },
1417
- "Symbol": {
1418
- "message": "Use 'symbol' instead",
1419
- "fixWith": "symbol"
1629
+ {
1630
+ "name": "vitest",
1631
+ "importNames": [
1632
+ "test"
1633
+ ],
1634
+ "message": "Use 'it' instead of 'test' for consistency."
1420
1635
  }
1421
- }
1422
- }
1423
- ],
1424
- "@typescript-eslint/consistent-type-exports": [
1425
- "error",
1426
- {
1427
- "fixMixedExportsWithInlineTypeSpecifier": false
1428
- }
1429
- ],
1430
- "@typescript-eslint/explicit-member-accessibility": "off",
1431
- "@typescript-eslint/interface-name-prefix": "off",
1432
- "@typescript-eslint/member-ordering": "off",
1433
- "@typescript-eslint/no-inferrable-types": "off",
1434
- "@typescript-eslint/no-non-null-assertion": "off",
1435
- "@typescript-eslint/prefer-optional-chain": "error",
1436
- "no-restricted-syntax": [
1437
- "error",
1438
- {
1439
- "selector": "MemberExpression[object.name='React']",
1440
- "message": "Do not use `React.*`. Use named imports instead."
1441
- },
1442
- {
1443
- "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1444
- "message": "Do not use `React.*` types. Use named imports instead."
1445
- },
1446
- {
1447
- "selector": "ExportNamespaceSpecifier",
1448
- "message": "Usage of 'export * as …' is forbidden."
1449
- },
1450
- {
1451
- "selector": "ExportAllDeclaration",
1452
- "message": "Usage of `export * from` is forbidden."
1453
- },
1454
- {
1455
- "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1456
- "message": "Do not use `import * as ...` from relative paths."
1457
- }
1458
- ],
1636
+ ],
1637
+ "patterns": [
1638
+ {
1639
+ "group": [
1640
+ "lodash-es"
1641
+ ],
1642
+ "importNames": [
1643
+ "get",
1644
+ "getOr"
1645
+ ],
1646
+ "message": "Please use the ?. and ?? operators instead."
1647
+ },
1648
+ {
1649
+ "group": [
1650
+ "lodash-es"
1651
+ ],
1652
+ "importNames": [
1653
+ "keys"
1654
+ ],
1655
+ "message": "Please use Object.keys() instead."
1656
+ },
1657
+ {
1658
+ "group": [
1659
+ "lodash-es"
1660
+ ],
1661
+ "importNames": [
1662
+ "values"
1663
+ ],
1664
+ "message": "Please use Object.values() instead."
1665
+ },
1666
+ {
1667
+ "group": [
1668
+ "lodash-es"
1669
+ ],
1670
+ "importNames": [
1671
+ "entries",
1672
+ "toPairs"
1673
+ ],
1674
+ "message": "Please use Object.entries() instead."
1675
+ },
1676
+ {
1677
+ "group": [
1678
+ "lodash-es"
1679
+ ],
1680
+ "importNames": [
1681
+ "map"
1682
+ ],
1683
+ "message": "Please use Array.prototype.map() instead."
1684
+ },
1685
+ {
1686
+ "group": [
1687
+ "lodash-es"
1688
+ ],
1689
+ "importNames": [
1690
+ "flatMap"
1691
+ ],
1692
+ "message": "Please use Array.prototype.flatMap() instead."
1693
+ },
1694
+ {
1695
+ "group": [
1696
+ "lodash-es"
1697
+ ],
1698
+ "importNames": [
1699
+ "filter"
1700
+ ],
1701
+ "message": "Please use Array.prototype.filter() instead."
1702
+ },
1703
+ {
1704
+ "group": [
1705
+ "lodash-es"
1706
+ ],
1707
+ "importNames": [
1708
+ "find"
1709
+ ],
1710
+ "message": "Please use Array.prototype.find() instead."
1711
+ },
1712
+ {
1713
+ "group": [
1714
+ "lodash-es"
1715
+ ],
1716
+ "importNames": [
1717
+ "findIndex"
1718
+ ],
1719
+ "message": "Please use Array.prototype.findIndex() instead."
1720
+ },
1721
+ {
1722
+ "group": [
1723
+ "lodash-es"
1724
+ ],
1725
+ "importNames": [
1726
+ "includes"
1727
+ ],
1728
+ "message": "Please use Array.prototype.includes() instead."
1729
+ },
1730
+ {
1731
+ "group": [
1732
+ "lodash-es"
1733
+ ],
1734
+ "importNames": [
1735
+ "some"
1736
+ ],
1737
+ "message": "Please use Array.prototype.some() instead."
1738
+ },
1739
+ {
1740
+ "group": [
1741
+ "lodash-es"
1742
+ ],
1743
+ "importNames": [
1744
+ "every"
1745
+ ],
1746
+ "message": "Please use Array.prototype.every() instead."
1747
+ },
1748
+ {
1749
+ "group": [
1750
+ "lodash-es"
1751
+ ],
1752
+ "importNames": [
1753
+ "concat"
1754
+ ],
1755
+ "message": "Please use Array.prototype.concat() or spread [...arr1, ...arr2] instead."
1756
+ },
1757
+ {
1758
+ "group": [
1759
+ "lodash-es"
1760
+ ],
1761
+ "importNames": [
1762
+ "reverse"
1763
+ ],
1764
+ "message": "Please use Array.prototype.reverse() instead."
1765
+ },
1766
+ {
1767
+ "group": [
1768
+ "lodash-es"
1769
+ ],
1770
+ "importNames": [
1771
+ "slice"
1772
+ ],
1773
+ "message": "Please use Array.prototype.slice() instead."
1774
+ },
1775
+ {
1776
+ "group": [
1777
+ "lodash-es"
1778
+ ],
1779
+ "importNames": [
1780
+ "indexOf"
1781
+ ],
1782
+ "message": "Please use Array.prototype.indexOf() instead."
1783
+ },
1784
+ {
1785
+ "group": [
1786
+ "lodash-es"
1787
+ ],
1788
+ "importNames": [
1789
+ "lastIndexOf"
1790
+ ],
1791
+ "message": "Please use Array.prototype.lastIndexOf() instead."
1792
+ },
1793
+ {
1794
+ "group": [
1795
+ "lodash-es"
1796
+ ],
1797
+ "importNames": [
1798
+ "fill"
1799
+ ],
1800
+ "message": "Please use Array.prototype.fill() instead."
1801
+ },
1802
+ {
1803
+ "group": [
1804
+ "lodash-es"
1805
+ ],
1806
+ "importNames": [
1807
+ "startsWith"
1808
+ ],
1809
+ "message": "Please use String.prototype.startsWith() instead."
1810
+ },
1811
+ {
1812
+ "group": [
1813
+ "lodash-es"
1814
+ ],
1815
+ "importNames": [
1816
+ "endsWith"
1817
+ ],
1818
+ "message": "Please use String.prototype.endsWith() instead."
1819
+ },
1820
+ {
1821
+ "group": [
1822
+ "lodash-es"
1823
+ ],
1824
+ "importNames": [
1825
+ "repeat"
1826
+ ],
1827
+ "message": "Please use String.prototype.repeat() instead."
1828
+ },
1829
+ {
1830
+ "group": [
1831
+ "lodash-es"
1832
+ ],
1833
+ "importNames": [
1834
+ "padStart"
1835
+ ],
1836
+ "message": "Please use String.prototype.padStart() instead."
1837
+ },
1838
+ {
1839
+ "group": [
1840
+ "lodash-es"
1841
+ ],
1842
+ "importNames": [
1843
+ "padEnd"
1844
+ ],
1845
+ "message": "Please use String.prototype.padEnd() instead."
1846
+ },
1847
+ {
1848
+ "group": [
1849
+ "lodash-es"
1850
+ ],
1851
+ "importNames": [
1852
+ "trim"
1853
+ ],
1854
+ "message": "Please use String.prototype.trim() instead."
1855
+ },
1856
+ {
1857
+ "group": [
1858
+ "lodash-es"
1859
+ ],
1860
+ "importNames": [
1861
+ "trimStart",
1862
+ "trimLeft"
1863
+ ],
1864
+ "message": "Please use String.prototype.trimStart() instead."
1865
+ },
1866
+ {
1867
+ "group": [
1868
+ "lodash-es"
1869
+ ],
1870
+ "importNames": [
1871
+ "trimEnd",
1872
+ "trimRight"
1873
+ ],
1874
+ "message": "Please use String.prototype.trimEnd() instead."
1875
+ },
1876
+ {
1877
+ "group": [
1878
+ "lodash-es"
1879
+ ],
1880
+ "importNames": [
1881
+ "toUpper"
1882
+ ],
1883
+ "message": "Please use String.prototype.toUpperCase() instead."
1884
+ },
1885
+ {
1886
+ "group": [
1887
+ "lodash-es"
1888
+ ],
1889
+ "importNames": [
1890
+ "toLower"
1891
+ ],
1892
+ "message": "Please use String.prototype.toLowerCase() instead."
1893
+ },
1894
+ {
1895
+ "group": [
1896
+ "lodash-es"
1897
+ ],
1898
+ "importNames": [
1899
+ "isArray"
1900
+ ],
1901
+ "message": "Please use Array.isArray() instead."
1902
+ },
1903
+ {
1904
+ "group": [
1905
+ "lodash-es"
1906
+ ],
1907
+ "importNames": [
1908
+ "isNaN"
1909
+ ],
1910
+ "message": "Please use Number.isNaN() instead."
1911
+ },
1912
+ {
1913
+ "group": [
1914
+ "lodash-es"
1915
+ ],
1916
+ "importNames": [
1917
+ "isFinite"
1918
+ ],
1919
+ "message": "Please use Number.isFinite() instead."
1920
+ },
1921
+ {
1922
+ "group": [
1923
+ "lodash-es"
1924
+ ],
1925
+ "importNames": [
1926
+ "isInteger"
1927
+ ],
1928
+ "message": "Please use Number.isInteger() instead."
1929
+ },
1930
+ {
1931
+ "group": [
1932
+ "lodash-es"
1933
+ ],
1934
+ "importNames": [
1935
+ "isNull"
1936
+ ],
1937
+ "message": "Please use value === null instead."
1938
+ },
1939
+ {
1940
+ "group": [
1941
+ "lodash-es"
1942
+ ],
1943
+ "importNames": [
1944
+ "isUndefined"
1945
+ ],
1946
+ "message": "Please use value === undefined instead."
1947
+ },
1948
+ {
1949
+ "group": [
1950
+ "lodash-es"
1951
+ ],
1952
+ "importNames": [
1953
+ "defaultTo"
1954
+ ],
1955
+ "message": "Please use value ?? defaultValue instead."
1956
+ },
1957
+ {
1958
+ "group": [
1959
+ "lodash-es"
1960
+ ],
1961
+ "importNames": [
1962
+ "assign"
1963
+ ],
1964
+ "message": "Please use Object.assign() or spread syntax {...obj} instead."
1965
+ },
1966
+ {
1967
+ "group": [
1968
+ "lodash-es"
1969
+ ],
1970
+ "importNames": [
1971
+ "flatten"
1972
+ ],
1973
+ "message": "Please use Array.prototype.flat() instead."
1974
+ },
1975
+ {
1976
+ "group": [
1977
+ "lodash-es"
1978
+ ],
1979
+ "importNames": [
1980
+ "flattenDeep"
1981
+ ],
1982
+ "message": "Please use Array.prototype.flat(Infinity) instead."
1983
+ },
1984
+ {
1985
+ "group": [
1986
+ "lodash-es"
1987
+ ],
1988
+ "importNames": [
1989
+ "isNil"
1990
+ ],
1991
+ "message": "Please use value === null || value === undefined instead."
1992
+ },
1993
+ {
1994
+ "group": [
1995
+ "lodash-es"
1996
+ ],
1997
+ "importNames": [
1998
+ "noop"
1999
+ ],
2000
+ "message": "Please use () => {} instead."
2001
+ },
2002
+ {
2003
+ "group": [
2004
+ "lodash-es"
2005
+ ],
2006
+ "importNames": [
2007
+ "identity"
2008
+ ],
2009
+ "message": "Please use x => x instead."
2010
+ },
2011
+ {
2012
+ "group": [
2013
+ "lodash-es"
2014
+ ],
2015
+ "importNames": [
2016
+ "first",
2017
+ "head"
2018
+ ],
2019
+ "message": "Please use Array.prototype.at(0) instead."
2020
+ },
2021
+ {
2022
+ "group": [
2023
+ "lodash-es"
2024
+ ],
2025
+ "importNames": [
2026
+ "last"
2027
+ ],
2028
+ "message": "Please use Array.prototype.at(-1) instead."
2029
+ },
2030
+ {
2031
+ "group": [
2032
+ "lodash-es"
2033
+ ],
2034
+ "importNames": [
2035
+ "forEach"
2036
+ ],
2037
+ "message": "Please use Array.prototype.forEach() instead."
2038
+ },
2039
+ {
2040
+ "group": [
2041
+ "lodash-es"
2042
+ ],
2043
+ "importNames": [
2044
+ "fromPairs"
2045
+ ],
2046
+ "message": "Please use Object.fromEntries() instead."
2047
+ },
2048
+ {
2049
+ "group": [
2050
+ "lodash-es"
2051
+ ],
2052
+ "importNames": [
2053
+ "join"
2054
+ ],
2055
+ "message": "Please use Array.prototype.join() instead."
2056
+ },
2057
+ {
2058
+ "group": [
2059
+ "lodash-es"
2060
+ ],
2061
+ "importNames": [
2062
+ "isDate"
2063
+ ],
2064
+ "message": "Please use val instanceof Date instead."
2065
+ },
2066
+ {
2067
+ "group": [
2068
+ "lodash-es"
2069
+ ],
2070
+ "importNames": [
2071
+ "isFunction"
2072
+ ],
2073
+ "message": "Please use typeof val === 'function' instead."
2074
+ },
2075
+ {
2076
+ "group": [
2077
+ "lodash-es"
2078
+ ],
2079
+ "importNames": [
2080
+ "isNumber"
2081
+ ],
2082
+ "message": "Please use typeof val === 'number' instead."
2083
+ },
2084
+ {
2085
+ "group": [
2086
+ "lodash-es"
2087
+ ],
2088
+ "importNames": [
2089
+ "isObject"
2090
+ ],
2091
+ "message": "Please use val !== null && typeof val === 'object' instead."
2092
+ },
2093
+ {
2094
+ "group": [
2095
+ "lodash-es"
2096
+ ],
2097
+ "importNames": [
2098
+ "isString"
2099
+ ],
2100
+ "message": "Please use typeof val === 'string' instead."
2101
+ },
2102
+ {
2103
+ "group": [
2104
+ "lodash-es"
2105
+ ],
2106
+ "importNames": [
2107
+ "toString"
2108
+ ],
2109
+ "message": "Please use String(val) instead."
2110
+ },
2111
+ {
2112
+ "group": [
2113
+ "lodash-es"
2114
+ ],
2115
+ "importNames": [
2116
+ "flow",
2117
+ "flowRight"
2118
+ ],
2119
+ "message": "Please use refactoring your code instead."
2120
+ }
2121
+ ]
2122
+ }
2123
+ ]
2124
+ }
2125
+ },
2126
+ {
2127
+ "files": [
2128
+ "**/eslint.config.ts",
2129
+ "**/eslint.config.js"
2130
+ ],
2131
+ "rules": {
2132
+ "no-restricted-exports": "off"
2133
+ }
2134
+ },
2135
+ {
2136
+ "files": [
2137
+ "**/*.ts",
2138
+ "**/*.tsx",
2139
+ "**/*.mts",
2140
+ "**/*.cts"
2141
+ ],
2142
+ "rules": {
2143
+ "constructor-super": "off",
2144
+ "getter-return": "off",
2145
+ "no-class-assign": "off",
2146
+ "no-const-assign": "off",
2147
+ "no-dupe-args": "off",
2148
+ "no-dupe-class-members": "off",
2149
+ "no-dupe-keys": "off",
2150
+ "no-func-assign": "off",
2151
+ "no-import-assign": "off",
2152
+ "no-new-native-nonconstructor": "off",
2153
+ "no-new-symbol": "off",
2154
+ "no-obj-calls": "off",
2155
+ "no-redeclare": "off",
2156
+ "no-setter-return": "off",
2157
+ "no-this-before-super": "off",
2158
+ "no-undef": "off",
2159
+ "no-unreachable": "off",
2160
+ "no-unsafe-negation": "off",
2161
+ "no-var": "error",
2162
+ "no-with": "off",
2163
+ "prefer-const": "error",
2164
+ "prefer-rest-params": "error",
2165
+ "prefer-spread": "error",
2166
+ "no-array-constructor": "off",
2167
+ "no-unused-expressions": "off",
2168
+ "no-unused-vars": "off",
2169
+ "@typescript-eslint/no-array-constructor": "error",
2170
+ "@typescript-eslint/no-duplicate-enum-values": "error",
2171
+ "@typescript-eslint/no-empty-object-type": "error",
2172
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
2173
+ "@typescript-eslint/no-misused-new": "error",
2174
+ "@typescript-eslint/no-namespace": "error",
2175
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
2176
+ "@typescript-eslint/no-require-imports": "error",
2177
+ "@typescript-eslint/no-this-alias": "error",
2178
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
2179
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
2180
+ "@typescript-eslint/prefer-as-const": "error",
2181
+ "@typescript-eslint/prefer-namespace-keyword": "error",
2182
+ "@typescript-eslint/triple-slash-reference": "error",
2183
+ "@typescript-eslint/explicit-function-return-type": 0,
2184
+ "@typescript-eslint/no-use-before-define": 0,
2185
+ "@typescript-eslint/no-empty-function": 0,
2186
+ "@typescript-eslint/no-unused-vars": [
2187
+ 2,
2188
+ {
2189
+ "varsIgnorePattern": "^_.*$",
2190
+ "argsIgnorePattern": "^_.*$"
2191
+ }
2192
+ ],
2193
+ "@typescript-eslint/no-explicit-any": "error",
2194
+ "@typescript-eslint/array-type": "off",
2195
+ "@typescript-eslint/ban-ts-comment": [
2196
+ "error",
2197
+ {
2198
+ "ts-expect-error": "allow-with-description"
2199
+ }
2200
+ ],
2201
+ "@typescript-eslint/no-wrapper-object-types": "error",
2202
+ "@typescript-eslint/no-unsafe-function-type": "error",
2203
+ "@typescript-eslint/no-restricted-types": [
2204
+ "error",
2205
+ {
2206
+ "types": {
2207
+ "String": {
2208
+ "message": "Use 'string' instead",
2209
+ "fixWith": "string"
2210
+ },
2211
+ "Number": {
2212
+ "message": "Use 'number' instead",
2213
+ "fixWith": "number"
2214
+ },
2215
+ "Boolean": {
2216
+ "message": "Use 'boolean' instead",
2217
+ "fixWith": "boolean"
2218
+ },
2219
+ "Symbol": {
2220
+ "message": "Use 'symbol' instead",
2221
+ "fixWith": "symbol"
2222
+ }
2223
+ }
2224
+ }
2225
+ ],
2226
+ "@typescript-eslint/explicit-member-accessibility": "off",
2227
+ "@typescript-eslint/interface-name-prefix": "off",
2228
+ "@typescript-eslint/member-ordering": "off",
2229
+ "@typescript-eslint/no-inferrable-types": "off",
2230
+ "@typescript-eslint/no-non-null-assertion": "off",
2231
+ "no-restricted-syntax": [
2232
+ "error",
2233
+ {
2234
+ "selector": "MemberExpression[object.name='React']",
2235
+ "message": "Do not use `React.*`. Use named imports instead."
2236
+ },
2237
+ {
2238
+ "selector": "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
2239
+ "message": "Do not use `React.*` types. Use named imports instead."
2240
+ },
2241
+ {
2242
+ "selector": "ExportNamespaceSpecifier",
2243
+ "message": "Usage of 'export * as …' is forbidden."
2244
+ },
2245
+ {
2246
+ "selector": "ExportAllDeclaration",
2247
+ "message": "Usage of `export * from` is forbidden."
2248
+ },
2249
+ {
2250
+ "selector": "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
2251
+ "message": "Do not use `import * as ...` from relative paths."
2252
+ }
2253
+ ],
1459
2254
  "@typescript-eslint/consistent-type-imports": [
1460
2255
  "error",
1461
2256
  {
1462
2257
  "prefer": "type-imports",
1463
2258
  "fixStyle": "inline-type-imports"
1464
2259
  }
2260
+ ],
2261
+ "@typescript-eslint/prefer-optional-chain": "error",
2262
+ "@typescript-eslint/consistent-type-exports": [
2263
+ "error",
2264
+ {
2265
+ "fixMixedExportsWithInlineTypeSpecifier": false
2266
+ }
2267
+ ],
2268
+ "@typescript-eslint/naming-convention": [
2269
+ "error",
2270
+ {
2271
+ "selector": "interface",
2272
+ "format": [
2273
+ "PascalCase"
2274
+ ],
2275
+ "custom": {
2276
+ "regex": "^I[A-Z]",
2277
+ "match": true
2278
+ }
2279
+ }
1465
2280
  ]
2281
+ },
2282
+ "parser": "@typescript-eslint/parser",
2283
+ "parserOptions": {
2284
+ "ecmaVersion": 2022,
2285
+ "sourceType": "module",
2286
+ "projectService": true
2287
+ }
2288
+ },
2289
+ {
2290
+ "files": [
2291
+ "**/eslint.config.ts"
2292
+ ],
2293
+ "rules": {
2294
+ "no-barrel-files/no-barrel-files": "off"
1466
2295
  }
1467
2296
  },
1468
2297
  {
1469
- "parser": "@typescript-eslint/parser",
1470
2298
  "files": [
1471
2299
  "**/*.ts",
2300
+ "**/*.cts",
2301
+ "**/*.mts",
1472
2302
  "**/*.tsx"
1473
2303
  ],
1474
- "extends": [
1475
- "plugin:import-x/typescript"
1476
- ]
2304
+ "settings": {
2305
+ "import-x/extensions": [
2306
+ ".ts",
2307
+ ".cts",
2308
+ ".mts",
2309
+ ".tsx",
2310
+ ".js",
2311
+ ".jsx",
2312
+ ".mjs",
2313
+ ".cjs"
2314
+ ],
2315
+ "import-x/external-module-folders": [
2316
+ "node_modules",
2317
+ "node_modules/@types"
2318
+ ],
2319
+ "import-x/parsers": {
2320
+ "@typescript-eslint/parser": [
2321
+ ".ts",
2322
+ ".cts",
2323
+ ".mts",
2324
+ ".tsx"
2325
+ ]
2326
+ },
2327
+ "import-x/resolver": {
2328
+ "typescript": {
2329
+ "alwaysTryTypes": true
2330
+ }
2331
+ }
2332
+ }
1477
2333
  },
1478
2334
  {
1479
2335
  "files": [
@@ -1513,21 +2369,12 @@
1513
2369
  }
1514
2370
  ],
1515
2371
  "settings": {
1516
- "import-x/resolver": {
1517
- "typescript": {
1518
- "alwaysTryTypes": true
1519
- },
1520
- "node": {
1521
- "extensions": [
1522
- ".ts",
1523
- ".tsx",
1524
- ".js",
1525
- ".jsx",
1526
- ".mjs",
1527
- ".cjs"
1528
- ]
1529
- }
1530
- },
2372
+ "import-x/extensions": [
2373
+ ".js",
2374
+ ".jsx",
2375
+ ".mjs",
2376
+ ".cjs"
2377
+ ],
1531
2378
  "react": {
1532
2379
  "version": "detect"
1533
2380
  }