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