@gooddata/eslint-config 11.19.0-alpha.9 → 11.20.0-alpha.0

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