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