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