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