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