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