@gooddata/eslint-config 11.19.0-alpha.0 → 11.19.0-alpha.10

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 (72) hide show
  1. package/LICENSE +7 -0
  2. package/PACKAGES_V8.md +26 -0
  3. package/PACKAGES_V9.md +28 -0
  4. package/PACKAGES_V9_OXLINT.md +28 -0
  5. package/README.md +135 -35
  6. package/dist/base.d.ts +12 -0
  7. package/dist/base.js +1869 -0
  8. package/dist/base.json +441 -98
  9. package/dist/browser-esm.d.ts +12 -0
  10. package/dist/browser-esm.js +1889 -0
  11. package/dist/browser-esm.json +442 -99
  12. package/dist/browser.d.ts +12 -0
  13. package/dist/browser.js +1874 -0
  14. package/dist/browser.json +441 -98
  15. package/dist/esm-react-cypress.d.ts +12 -0
  16. package/dist/esm-react-cypress.js +1991 -0
  17. package/dist/esm-react-cypress.json +454 -101
  18. package/dist/esm-react-vitest-storybook.d.ts +12 -0
  19. package/dist/esm-react-vitest-storybook.js +2013 -0
  20. package/dist/esm-react-vitest-storybook.json +480 -100
  21. package/dist/esm-react-vitest.d.ts +12 -0
  22. package/dist/esm-react-vitest.js +1979 -0
  23. package/dist/esm-react-vitest.json +463 -101
  24. package/dist/esm-react.d.ts +12 -0
  25. package/dist/esm-react.js +1935 -0
  26. package/dist/esm-react.json +440 -99
  27. package/dist/esm-vitest.d.ts +12 -0
  28. package/dist/esm-vitest.js +1928 -0
  29. package/dist/esm-vitest.json +465 -101
  30. package/dist/esm.d.ts +12 -0
  31. package/dist/esm.js +1884 -0
  32. package/dist/esm.json +442 -99
  33. package/dist/oxlint-base.d.ts +12 -0
  34. package/dist/oxlint-base.js +1869 -0
  35. package/dist/oxlint-browser-esm.d.ts +12 -0
  36. package/dist/oxlint-browser-esm.js +1889 -0
  37. package/dist/oxlint-browser.d.ts +12 -0
  38. package/dist/oxlint-browser.js +1874 -0
  39. package/dist/oxlint-esm-react-cypress.d.ts +12 -0
  40. package/dist/oxlint-esm-react-cypress.js +1991 -0
  41. package/dist/oxlint-esm-react-vitest-storybook.d.ts +12 -0
  42. package/dist/oxlint-esm-react-vitest-storybook.js +2013 -0
  43. package/dist/oxlint-esm-react-vitest.d.ts +12 -0
  44. package/dist/oxlint-esm-react-vitest.js +1979 -0
  45. package/dist/oxlint-esm-react.d.ts +12 -0
  46. package/dist/oxlint-esm-react.js +1935 -0
  47. package/dist/oxlint-esm-vitest.d.ts +12 -0
  48. package/dist/oxlint-esm-vitest.js +1928 -0
  49. package/dist/oxlint-esm.d.ts +12 -0
  50. package/dist/oxlint-esm.js +1884 -0
  51. package/dist/oxlint-react-cypress.d.ts +12 -0
  52. package/dist/oxlint-react-cypress.js +1982 -0
  53. package/dist/oxlint-react-vitest.d.ts +12 -0
  54. package/dist/oxlint-react-vitest.js +1970 -0
  55. package/dist/oxlint-react.d.ts +12 -0
  56. package/dist/oxlint-react.js +1926 -0
  57. package/dist/oxlint-vitest.d.ts +12 -0
  58. package/dist/oxlint-vitest.js +1913 -0
  59. package/dist/react-cypress.d.ts +12 -0
  60. package/dist/react-cypress.js +1982 -0
  61. package/dist/react-cypress.json +453 -100
  62. package/dist/react-vitest.d.ts +12 -0
  63. package/dist/react-vitest.js +1970 -0
  64. package/dist/react-vitest.json +462 -100
  65. package/dist/react.d.ts +12 -0
  66. package/dist/react.js +1926 -0
  67. package/dist/react.json +438 -97
  68. package/dist/vitest.d.ts +12 -0
  69. package/dist/vitest.js +1913 -0
  70. package/dist/vitest.json +464 -100
  71. package/package.json +122 -48
  72. package/dist/tsOverride.cjs +0 -23
@@ -2,25 +2,74 @@
2
2
  "plugins": [
3
3
  "header",
4
4
  "no-barrel-files",
5
- "import",
6
- "no-only-tests",
5
+ "import-x",
7
6
  "sonarjs",
8
7
  "react",
9
8
  "react-hooks",
10
9
  "import-esm",
11
- "@vitest"
12
- ],
13
- "extends": [
14
- "eslint:recommended",
15
- "plugin:import/errors",
16
- "plugin:prettier/recommended",
17
- "plugin:regexp/recommended",
18
- "plugin:sonarjs/recommended-legacy",
19
- "plugin:react-hooks/recommended",
20
- "plugin:import-esm/recommended",
21
- "plugin:@vitest/legacy-recommended"
10
+ "@vitest",
11
+ "no-only-tests",
12
+ "storybook"
22
13
  ],
23
14
  "rules": {
15
+ "constructor-super": "error",
16
+ "for-direction": "error",
17
+ "getter-return": "error",
18
+ "no-async-promise-executor": "error",
19
+ "no-case-declarations": "error",
20
+ "no-class-assign": "error",
21
+ "no-compare-neg-zero": "error",
22
+ "no-cond-assign": "error",
23
+ "no-const-assign": "error",
24
+ "no-constant-binary-expression": "error",
25
+ "no-constant-condition": "error",
26
+ "no-control-regex": "error",
27
+ "no-debugger": "error",
28
+ "no-delete-var": 2,
29
+ "no-dupe-args": "error",
30
+ "no-dupe-class-members": "error",
31
+ "no-dupe-else-if": "error",
32
+ "no-dupe-keys": "error",
33
+ "no-duplicate-case": "error",
34
+ "no-empty": "error",
35
+ "no-empty-character-class": "error",
36
+ "no-empty-pattern": "error",
37
+ "no-empty-static-block": "error",
38
+ "no-ex-assign": "error",
39
+ "no-fallthrough": "error",
40
+ "no-func-assign": "error",
41
+ "no-global-assign": "error",
42
+ "no-import-assign": "error",
43
+ "no-invalid-regexp": "error",
44
+ "no-irregular-whitespace": "error",
45
+ "no-loss-of-precision": "error",
46
+ "no-misleading-character-class": "error",
47
+ "no-new-native-nonconstructor": "error",
48
+ "no-nonoctal-decimal-escape": "error",
49
+ "no-obj-calls": "error",
50
+ "no-octal": "error",
51
+ "no-prototype-builtins": "error",
52
+ "no-redeclare": "error",
53
+ "no-regex-spaces": "error",
54
+ "no-self-assign": "error",
55
+ "no-setter-return": "error",
56
+ "no-shadow-restricted-names": "error",
57
+ "no-sparse-arrays": "error",
58
+ "no-this-before-super": "error",
59
+ "no-undef": "error",
60
+ "no-unreachable": "error",
61
+ "no-unsafe-finally": "error",
62
+ "no-unsafe-negation": "error",
63
+ "no-unsafe-optional-chaining": "error",
64
+ "no-unused-labels": "error",
65
+ "no-unused-private-class-members": "error",
66
+ "no-unused-vars": "error",
67
+ "no-useless-backreference": "error",
68
+ "no-useless-catch": "error",
69
+ "no-with": "error",
70
+ "require-yield": "error",
71
+ "use-isnan": "error",
72
+ "valid-typeof": "error",
24
73
  "no-console": [
25
74
  2,
26
75
  {
@@ -59,6 +108,13 @@
59
108
  ],
60
109
  "message": "Default import from React is not allowed. Use named imports instead."
61
110
  },
111
+ {
112
+ "name": "react-dom",
113
+ "importNames": [
114
+ "default"
115
+ ],
116
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
117
+ },
62
118
  {
63
119
  "name": "@gooddata/sdk-ui-kit",
64
120
  "importNames": [
@@ -566,6 +622,10 @@
566
622
  {
567
623
  "selector": "MemberExpression[object.name='React']",
568
624
  "message": "Do not use `React.*`. Use named imports instead."
625
+ },
626
+ {
627
+ "selector": "MemberExpression[object.name='ReactDOM']",
628
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
569
629
  }
570
630
  ],
571
631
  "sort-imports": [
@@ -585,16 +645,7 @@
585
645
  }
586
646
  ],
587
647
  "no-extra-boolean-cast": "error",
588
- "no-unexpected-multiline": "off",
589
- "no-warning-comments": [
590
- "warn",
591
- {
592
- "terms": [
593
- "todo"
594
- ],
595
- "location": "start"
596
- }
597
- ],
648
+ "no-unexpected-multiline": 0,
598
649
  "header/header": [
599
650
  2,
600
651
  "line",
@@ -604,7 +655,15 @@
604
655
  }
605
656
  ],
606
657
  "no-barrel-files/no-barrel-files": "error",
607
- "import/order": [
658
+ "import-x/no-unresolved": "error",
659
+ "import-x/named": "error",
660
+ "import-x/namespace": "error",
661
+ "import-x/default": "error",
662
+ "import-x/export": "error",
663
+ "import-x/no-named-as-default": "warn",
664
+ "import-x/no-named-as-default-member": "warn",
665
+ "import-x/no-duplicates": "warn",
666
+ "import-x/order": [
608
667
  "error",
609
668
  {
610
669
  "pathGroups": [
@@ -639,20 +698,211 @@
639
698
  "newlines-between": "always"
640
699
  }
641
700
  ],
642
- "import/no-unassigned-import": "error",
643
- "no-only-tests/no-only-tests": [
644
- "error",
645
- {
646
- "block": [
647
- "fixture"
648
- ],
649
- "focus": [
650
- "only"
651
- ]
652
- }
653
- ],
654
- "regexp/prefer-d": "off",
655
- "regexp/prefer-w": "off",
701
+ "import-x/no-unassigned-import": "error",
702
+ "sonarjs/function-name": "off",
703
+ "sonarjs/max-lines": "off",
704
+ "sonarjs/no-tab": "off",
705
+ "sonarjs/variable-name": "off",
706
+ "sonarjs/comment-regex": "off",
707
+ "sonarjs/elseif-without-else": "off",
708
+ "sonarjs/no-fallthrough": "error",
709
+ "sonarjs/nested-control-flow": "off",
710
+ "sonarjs/too-many-break-or-continue-in-loop": "off",
711
+ "sonarjs/max-lines-per-function": "off",
712
+ "sonarjs/no-nested-incdec": "off",
713
+ "sonarjs/no-equals-in-for-termination": "error",
714
+ "sonarjs/no-extra-arguments": "error",
715
+ "sonarjs/no-collapsible-if": "off",
716
+ "sonarjs/expression-complexity": "off",
717
+ "sonarjs/no-redundant-parentheses": "off",
718
+ "sonarjs/no-labels": "error",
719
+ "sonarjs/no-redundant-boolean": "error",
720
+ "sonarjs/prefer-single-boolean-return": "error",
721
+ "sonarjs/unused-import": "error",
722
+ "sonarjs/useless-string-operation": "off",
723
+ "sonarjs/no-unused-function-argument": "off",
724
+ "sonarjs/no-case-label-in-switch": "error",
725
+ "sonarjs/no-parameter-reassignment": "error",
726
+ "sonarjs/prefer-while": "error",
727
+ "sonarjs/no-sonar-comments": "off",
728
+ "sonarjs/no-small-switch": "error",
729
+ "sonarjs/no-hardcoded-ip": "error",
730
+ "sonarjs/label-position": "error",
731
+ "sonarjs/file-header": "off",
732
+ "sonarjs/call-argument-line": "error",
733
+ "sonarjs/max-switch-cases": "error",
734
+ "sonarjs/prefer-immediate-return": "off",
735
+ "sonarjs/function-inside-loop": "error",
736
+ "sonarjs/no-variable-usage-before-declaration": "off",
737
+ "sonarjs/future-reserved-words": "error",
738
+ "sonarjs/array-constructor": "off",
739
+ "sonarjs/bitwise-operators": "error",
740
+ "sonarjs/no-function-declaration-in-block": "off",
741
+ "sonarjs/no-primitive-wrappers": "error",
742
+ "sonarjs/for-in": "off",
743
+ "sonarjs/cyclomatic-complexity": "off",
744
+ "sonarjs/no-identical-expressions": "error",
745
+ "sonarjs/no-nested-switch": "off",
746
+ "sonarjs/no-identical-conditions": "error",
747
+ "sonarjs/no-duplicated-branches": "error",
748
+ "sonarjs/misplaced-loop-counter": "error",
749
+ "sonarjs/sql-queries": "error",
750
+ "sonarjs/insecure-cookie": "error",
751
+ "sonarjs/no-useless-increment": "error",
752
+ "sonarjs/no-undefined-assignment": "off",
753
+ "sonarjs/no-wildcard-import": "off",
754
+ "sonarjs/for-loop-increment-sign": "error",
755
+ "sonarjs/cookies": "off",
756
+ "sonarjs/null-dereference": "error",
757
+ "sonarjs/updated-loop-counter": "error",
758
+ "sonarjs/block-scoped-var": "error",
759
+ "sonarjs/no-built-in-override": "off",
760
+ "sonarjs/prefer-object-literal": "off",
761
+ "sonarjs/no-gratuitous-expressions": "error",
762
+ "sonarjs/file-uploads": "error",
763
+ "sonarjs/file-permissions": "error",
764
+ "sonarjs/no-empty-character-class": "error",
765
+ "sonarjs/no-unenclosed-multiline-block": "error",
766
+ "sonarjs/index-of-compare-to-positive-number": "error",
767
+ "sonarjs/no-useless-catch": "error",
768
+ "sonarjs/xml-parser-xxe": "error",
769
+ "sonarjs/non-existent-operator": "error",
770
+ "sonarjs/web-sql-database": "off",
771
+ "sonarjs/no-array-delete": "error",
772
+ "sonarjs/no-incomplete-assertions": "error",
773
+ "sonarjs/no-global-this": "error",
774
+ "sonarjs/new-operator-misuse": "error",
775
+ "sonarjs/no-delete-var": "error",
776
+ "sonarjs/strings-comparison": "off",
777
+ "sonarjs/file-name-differ-from-class": "off",
778
+ "sonarjs/cookie-no-httponly": "error",
779
+ "sonarjs/no-incorrect-string-concat": "off",
780
+ "sonarjs/inverted-assertion-arguments": "error",
781
+ "sonarjs/shorthand-property-grouping": "off",
782
+ "sonarjs/updated-const-var": "error",
783
+ "sonarjs/arguments-usage": "off",
784
+ "sonarjs/destructuring-assignment-syntax": "off",
785
+ "sonarjs/arrow-function-convention": "off",
786
+ "sonarjs/class-prototype": "off",
787
+ "sonarjs/no-require-or-define": "off",
788
+ "sonarjs/no-associative-arrays": "error",
789
+ "sonarjs/comma-or-logical-or-case": "error",
790
+ "sonarjs/no-redundant-jump": "error",
791
+ "sonarjs/inconsistent-function-call": "error",
792
+ "sonarjs/no-use-of-empty-return-value": "error",
793
+ "sonarjs/enforce-trailing-comma": "off",
794
+ "sonarjs/operation-returning-nan": "off",
795
+ "sonarjs/values-not-convertible-to-numbers": "off",
796
+ "sonarjs/non-number-in-arithmetic-expression": "off",
797
+ "sonarjs/in-operator-type-error": "error",
798
+ "sonarjs/declarations-in-global-scope": "off",
799
+ "sonarjs/no-inconsistent-returns": "off",
800
+ "sonarjs/no-reference-error": "off",
801
+ "sonarjs/super-invocation": "error",
802
+ "sonarjs/no-all-duplicated-branches": "error",
803
+ "sonarjs/no-same-line-conditional": "error",
804
+ "sonarjs/conditional-indentation": "off",
805
+ "sonarjs/no-collection-size-mischeck": "error",
806
+ "sonarjs/no-unthrown-error": "error",
807
+ "sonarjs/no-unused-collection": "error",
808
+ "sonarjs/no-for-in-iterable": "off",
809
+ "sonarjs/no-element-overwrite": "error",
810
+ "sonarjs/no-identical-functions": "error",
811
+ "sonarjs/no-empty-collection": "error",
812
+ "sonarjs/no-redundant-assignments": "error",
813
+ "sonarjs/prefer-type-guard": "error",
814
+ "sonarjs/no-return-type-any": "off",
815
+ "sonarjs/no-implicit-dependencies": "off",
816
+ "sonarjs/weak-ssl": "error",
817
+ "sonarjs/no-weak-keys": "error",
818
+ "sonarjs/csrf": "error",
819
+ "sonarjs/production-debug": "error",
820
+ "sonarjs/no-in-misuse": "error",
821
+ "sonarjs/no-duplicate-in-composite": "error",
822
+ "sonarjs/max-union-size": "off",
823
+ "sonarjs/no-nested-template-literals": "error",
824
+ "sonarjs/regular-expr": "off",
825
+ "sonarjs/encryption": "off",
826
+ "sonarjs/hashing": "error",
827
+ "sonarjs/bool-param-default": "off",
828
+ "sonarjs/xpath": "off",
829
+ "sonarjs/sockets": "off",
830
+ "sonarjs/process-argv": "off",
831
+ "sonarjs/standard-input": "off",
832
+ "sonarjs/unverified-certificate": "error",
833
+ "sonarjs/cors": "error",
834
+ "sonarjs/disabled-auto-escaping": "error",
835
+ "sonarjs/no-table-as-layout": "error",
836
+ "sonarjs/table-header-reference": "error",
837
+ "sonarjs/object-alt-content": "error",
838
+ "sonarjs/publicly-writable-directories": "error",
839
+ "sonarjs/unverified-hostname": "error",
840
+ "sonarjs/encryption-secure-mode": "error",
841
+ "sonarjs/no-weak-cipher": "error",
842
+ "sonarjs/no-intrusive-permissions": "error",
843
+ "sonarjs/insecure-jwt-token": "error",
844
+ "sonarjs/x-powered-by": "error",
845
+ "sonarjs/hidden-files": "error",
846
+ "sonarjs/content-length": "error",
847
+ "sonarjs/disabled-resource-integrity": "error",
848
+ "sonarjs/content-security-policy": "error",
849
+ "sonarjs/no-mixed-content": "error",
850
+ "sonarjs/frame-ancestors": "error",
851
+ "sonarjs/no-mime-sniff": "error",
852
+ "sonarjs/no-referrer-policy": "error",
853
+ "sonarjs/strict-transport-security": "error",
854
+ "sonarjs/certificate-transparency": "off",
855
+ "sonarjs/dns-prefetching": "off",
856
+ "sonarjs/confidential-information-logging": "error",
857
+ "sonarjs/no-ip-forward": "error",
858
+ "sonarjs/no-invalid-regexp": "error",
859
+ "sonarjs/unused-named-groups": "error",
860
+ "sonarjs/no-same-argument-assert": "error",
861
+ "sonarjs/unicode-aware-regex": "off",
862
+ "sonarjs/no-misleading-character-class": "error",
863
+ "sonarjs/session-regeneration": "error",
864
+ "sonarjs/test-check-exception": "error",
865
+ "sonarjs/stable-tests": "error",
866
+ "sonarjs/no-empty-after-reluctant": "error",
867
+ "sonarjs/no-code-after-done": "error",
868
+ "sonarjs/disabled-timeout": "error",
869
+ "sonarjs/chai-determinate-assertion": "error",
870
+ "sonarjs/aws-s3-bucket-server-encryption": "off",
871
+ "sonarjs/aws-s3-bucket-insecure-http": "error",
872
+ "sonarjs/aws-s3-bucket-versioning": "error",
873
+ "sonarjs/aws-s3-bucket-granted-access": "error",
874
+ "sonarjs/no-angular-bypass-sanitization": "error",
875
+ "sonarjs/aws-iam-public-access": "error",
876
+ "sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
877
+ "sonarjs/aws-s3-bucket-public-access": "error",
878
+ "sonarjs/no-vue-bypass-sanitization": "off",
879
+ "sonarjs/aws-iam-all-privileges": "error",
880
+ "sonarjs/aws-rds-unencrypted-databases": "error",
881
+ "sonarjs/aws-iam-all-resources-accessible": "off",
882
+ "sonarjs/aws-opensearchservice-domain": "error",
883
+ "sonarjs/aws-iam-privilege-escalation": "error",
884
+ "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
885
+ "sonarjs/aws-restricted-ip-admin-access": "error",
886
+ "sonarjs/no-empty-alternatives": "error",
887
+ "sonarjs/no-regex-spaces": "error",
888
+ "sonarjs/aws-sns-unencrypted-topics": "error",
889
+ "sonarjs/existing-groups": "error",
890
+ "sonarjs/aws-ec2-rds-dms-public": "error",
891
+ "sonarjs/aws-sqs-unencrypted-queue": "error",
892
+ "sonarjs/no-empty-group": "error",
893
+ "sonarjs/aws-efs-unencrypted": "error",
894
+ "sonarjs/aws-apigateway-public-api": "error",
895
+ "sonarjs/stateful-regex": "error",
896
+ "sonarjs/single-char-in-character-classes": "error",
897
+ "sonarjs/no-exclusive-tests": "error",
898
+ "sonarjs/hardcoded-secret-signatures": "error",
899
+ "sonarjs/jsx-no-leaked-render": "error",
900
+ "sonarjs/no-hook-setter-in-body": "error",
901
+ "sonarjs/no-uniq-key": "error",
902
+ "sonarjs/no-internal-api-use": "error",
903
+ "sonarjs/no-literal-call": "error",
904
+ "sonarjs/review-blockchain-mnemonic": "error",
905
+ "sonarjs/dynamically-constructed-templates": "error",
656
906
  "sonarjs/no-duplicate-string": "off",
657
907
  "sonarjs/cognitive-complexity": "warn",
658
908
  "sonarjs/todo-tag": "warn",
@@ -720,8 +970,46 @@
720
970
  "sonarjs/no-control-regex": "off",
721
971
  "no-caller": 2,
722
972
  "no-eval": 2,
723
- "no-delete-var": 2,
724
973
  "no-octal-escape": 2,
974
+ "curly": 0,
975
+ "@typescript-eslint/lines-around-comment": 0,
976
+ "@typescript-eslint/quotes": 0,
977
+ "unicorn/template-indent": 0,
978
+ "@typescript-eslint/block-spacing": "off",
979
+ "@typescript-eslint/brace-style": "off",
980
+ "@typescript-eslint/comma-dangle": "off",
981
+ "@typescript-eslint/comma-spacing": "off",
982
+ "@typescript-eslint/func-call-spacing": "off",
983
+ "@typescript-eslint/indent": "off",
984
+ "@typescript-eslint/key-spacing": "off",
985
+ "@typescript-eslint/keyword-spacing": "off",
986
+ "@typescript-eslint/member-delimiter-style": "off",
987
+ "@typescript-eslint/no-extra-parens": "off",
988
+ "@typescript-eslint/no-extra-semi": "off",
989
+ "@typescript-eslint/object-curly-spacing": "off",
990
+ "@typescript-eslint/semi": "off",
991
+ "@typescript-eslint/space-before-blocks": "off",
992
+ "@typescript-eslint/space-before-function-paren": "off",
993
+ "@typescript-eslint/space-infix-ops": "off",
994
+ "@typescript-eslint/type-annotation-spacing": "off",
995
+ "react/jsx-child-element-spacing": "off",
996
+ "react/jsx-closing-bracket-location": "off",
997
+ "react/jsx-closing-tag-location": "off",
998
+ "react/jsx-curly-newline": "off",
999
+ "react/jsx-curly-spacing": "off",
1000
+ "react/jsx-equals-spacing": "off",
1001
+ "react/jsx-first-prop-new-line": "off",
1002
+ "react/jsx-indent": "off",
1003
+ "react/jsx-indent-props": "off",
1004
+ "react/jsx-max-props-per-line": "off",
1005
+ "react/jsx-newline": "off",
1006
+ "react/jsx-one-expression-per-line": "off",
1007
+ "react/jsx-props-no-multi-spaces": "off",
1008
+ "react/jsx-tag-spacing": "off",
1009
+ "react/jsx-wrap-multilines": "off",
1010
+ "unicorn/empty-brace-spaces": "off",
1011
+ "unicorn/no-nested-ternary": "off",
1012
+ "unicorn/number-literal-case": "off",
725
1013
  "react/no-danger": "error",
726
1014
  "react/prop-types": "off",
727
1015
  "react/function-component-definition": [
@@ -747,13 +1035,35 @@
747
1035
  "react/react-in-jsx-scope": "off",
748
1036
  "react-hooks/rules-of-hooks": "error",
749
1037
  "react-hooks/exhaustive-deps": "error",
1038
+ "import-esm/explicit-extension": "error",
1039
+ "@vitest/no-conditional-expect": "error",
1040
+ "@vitest/no-import-node-test": "error",
1041
+ "@vitest/no-interpolation-in-snapshots": "error",
1042
+ "@vitest/no-mocks-import": "error",
1043
+ "@vitest/no-standalone-expect": "error",
1044
+ "@vitest/no-unneeded-async-expect-function": "error",
1045
+ "@vitest/prefer-called-exactly-once-with": "error",
1046
+ "@vitest/require-local-test-context-for-concurrent-snapshots": "error",
1047
+ "@vitest/valid-describe-callback": "error",
1048
+ "@vitest/valid-expect-in-promise": "error",
750
1049
  "@vitest/expect-expect": "off",
751
1050
  "@vitest/no-commented-out-tests": "warn",
752
1051
  "@vitest/valid-title": "error",
753
1052
  "@vitest/no-disabled-tests": "warn",
754
1053
  "@vitest/no-focused-tests": "warn",
755
1054
  "@vitest/no-identical-title": "warn",
756
- "@vitest/valid-expect": "warn"
1055
+ "@vitest/valid-expect": "warn",
1056
+ "no-only-tests/no-only-tests": [
1057
+ "error",
1058
+ {
1059
+ "block": [
1060
+ "fixture"
1061
+ ],
1062
+ "focus": [
1063
+ "only"
1064
+ ]
1065
+ }
1066
+ ]
757
1067
  },
758
1068
  "overrides": [
759
1069
  {
@@ -785,6 +1095,13 @@
785
1095
  ],
786
1096
  "message": "Default import from React is not allowed. Use named imports instead."
787
1097
  },
1098
+ {
1099
+ "name": "react-dom",
1100
+ "importNames": [
1101
+ "default"
1102
+ ],
1103
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1104
+ },
788
1105
  {
789
1106
  "name": "@gooddata/sdk-ui-kit",
790
1107
  "importNames": [
@@ -1296,19 +1613,63 @@
1296
1613
  }
1297
1614
  },
1298
1615
  {
1299
- "parser": "@typescript-eslint/parser",
1300
1616
  "files": [
1301
- "**/*.ts",
1302
- "**/*.tsx"
1617
+ "**/eslint.config.ts",
1618
+ "**/eslint.config.js"
1303
1619
  ],
1304
- "extends": [
1305
- "plugin:@typescript-eslint/recommended-type-checked"
1620
+ "rules": {
1621
+ "no-restricted-exports": "off"
1622
+ }
1623
+ },
1624
+ {
1625
+ "files": [
1626
+ "**/*.ts",
1627
+ "**/*.tsx",
1628
+ "**/*.mts",
1629
+ "**/*.cts"
1306
1630
  ],
1307
- "parserOptions": {
1308
- "ecmaVersion": 2022,
1309
- "sourceType": "module"
1310
- },
1311
1631
  "rules": {
1632
+ "constructor-super": "off",
1633
+ "getter-return": "off",
1634
+ "no-class-assign": "off",
1635
+ "no-const-assign": "off",
1636
+ "no-dupe-args": "off",
1637
+ "no-dupe-class-members": "off",
1638
+ "no-dupe-keys": "off",
1639
+ "no-func-assign": "off",
1640
+ "no-import-assign": "off",
1641
+ "no-new-native-nonconstructor": "off",
1642
+ "no-new-symbol": "off",
1643
+ "no-obj-calls": "off",
1644
+ "no-redeclare": "off",
1645
+ "no-setter-return": "off",
1646
+ "no-this-before-super": "off",
1647
+ "no-undef": "off",
1648
+ "no-unreachable": "off",
1649
+ "no-unsafe-negation": "off",
1650
+ "no-var": "error",
1651
+ "no-with": "off",
1652
+ "prefer-const": "error",
1653
+ "prefer-rest-params": "error",
1654
+ "prefer-spread": "error",
1655
+ "no-array-constructor": "off",
1656
+ "no-unused-expressions": "off",
1657
+ "no-unused-vars": "off",
1658
+ "@typescript-eslint/no-array-constructor": "error",
1659
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1660
+ "@typescript-eslint/no-empty-object-type": "error",
1661
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1662
+ "@typescript-eslint/no-misused-new": "error",
1663
+ "@typescript-eslint/no-namespace": "error",
1664
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1665
+ "@typescript-eslint/no-require-imports": "error",
1666
+ "@typescript-eslint/no-this-alias": "error",
1667
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1668
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1669
+ "@typescript-eslint/no-unused-expressions": "error",
1670
+ "@typescript-eslint/prefer-as-const": "error",
1671
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1672
+ "@typescript-eslint/triple-slash-reference": "error",
1312
1673
  "@typescript-eslint/explicit-function-return-type": 0,
1313
1674
  "@typescript-eslint/no-use-before-define": 0,
1314
1675
  "@typescript-eslint/no-empty-function": 0,
@@ -1407,17 +1768,53 @@
1407
1768
  "fixStyle": "inline-type-imports"
1408
1769
  }
1409
1770
  ]
1771
+ },
1772
+ "parser": "@typescript-eslint/parser",
1773
+ "parserOptions": {
1774
+ "ecmaVersion": 2022,
1775
+ "sourceType": "module",
1776
+ "projectService": true
1410
1777
  }
1411
1778
  },
1412
1779
  {
1413
- "parser": "@typescript-eslint/parser",
1414
1780
  "files": [
1415
1781
  "**/*.ts",
1782
+ "**/*.cts",
1783
+ "**/*.mts",
1416
1784
  "**/*.tsx"
1417
1785
  ],
1418
- "extends": [
1419
- "plugin:import/typescript"
1420
- ]
1786
+ "settings": {
1787
+ "import-x/extensions": [
1788
+ ".ts",
1789
+ ".cts",
1790
+ ".mts",
1791
+ ".tsx",
1792
+ ".js",
1793
+ ".jsx",
1794
+ ".mjs",
1795
+ ".cjs"
1796
+ ],
1797
+ "import-x/external-module-folders": [
1798
+ "node_modules",
1799
+ "node_modules/@types"
1800
+ ],
1801
+ "import-x/parsers": {
1802
+ "@typescript-eslint/parser": [
1803
+ ".ts",
1804
+ ".cts",
1805
+ ".mts",
1806
+ ".tsx"
1807
+ ]
1808
+ },
1809
+ "import-x/resolver": {
1810
+ "typescript": {
1811
+ "alwaysTryTypes": true
1812
+ }
1813
+ }
1814
+ },
1815
+ "rules": {
1816
+ "import-x/named": "off"
1817
+ }
1421
1818
  },
1422
1819
  {
1423
1820
  "files": [
@@ -1446,65 +1843,41 @@
1446
1843
  }
1447
1844
  },
1448
1845
  {
1449
- "parser": "@typescript-eslint/parser",
1450
1846
  "files": [
1451
- "**/*.ts",
1452
- "**/*.tsx"
1847
+ "**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)",
1848
+ "**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"
1453
1849
  ],
1454
- "parserOptions": {
1455
- "ecmaVersion": 2022,
1456
- "sourceType": "module"
1457
- },
1458
- "plugins": [
1459
- "tsdoc",
1460
- "jsdoc"
1461
- ],
1462
- "settings": {
1463
- "jsdoc": {
1464
- "mode": "typescript"
1465
- }
1466
- },
1467
1850
  "rules": {
1468
- "tsdoc/syntax": "error",
1469
- "jsdoc/require-param": [
1470
- "error",
1471
- {
1472
- "contexts": [
1473
- {
1474
- "context": "FunctionDeclaration",
1475
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1476
- },
1477
- {
1478
- "context": "FunctionExpression",
1479
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1480
- },
1481
- {
1482
- "context": "ArrowFunctionExpression",
1483
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1484
- },
1485
- {
1486
- "context": "MethodDefinition",
1487
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1488
- }
1489
- ]
1490
- }
1491
- ],
1492
- "jsdoc/require-param-type": "off"
1851
+ "react-hooks/rules-of-hooks": "off",
1852
+ "import/no-anonymous-default-export": "off",
1853
+ "storybook/await-interactions": "error",
1854
+ "storybook/context-in-play-function": "error",
1855
+ "storybook/default-exports": "error",
1856
+ "storybook/hierarchy-separator": "warn",
1857
+ "storybook/no-redundant-story-name": "warn",
1858
+ "storybook/no-renderer-packages": "error",
1859
+ "storybook/prefer-pascal-case": "error",
1860
+ "storybook/story-exports": "error",
1861
+ "storybook/use-storybook-expect": "error",
1862
+ "storybook/use-storybook-testing-library": "error"
1493
1863
  }
1494
1864
  },
1495
1865
  {
1496
1866
  "files": [
1497
- "**/*.stories.tsx"
1498
- ],
1499
- "extends": [
1500
- "plugin:storybook/recommended"
1867
+ ".storybook/main.@(js|cjs|mjs|ts)"
1501
1868
  ],
1502
1869
  "rules": {
1503
- "storybook/prefer-pascal-case": "error"
1870
+ "storybook/no-uninstalled-addons": "error"
1504
1871
  }
1505
1872
  }
1506
1873
  ],
1507
1874
  "settings": {
1875
+ "import-x/extensions": [
1876
+ ".js",
1877
+ ".jsx",
1878
+ ".mjs",
1879
+ ".cjs"
1880
+ ],
1508
1881
  "react": {
1509
1882
  "version": "detect"
1510
1883
  }
@@ -1516,7 +1889,14 @@
1516
1889
  },
1517
1890
  "ignorePatterns": [
1518
1891
  "**/dist/**/*.*",
1519
- "**/esm/**/*.*"
1892
+ "**/esm/**/*.*",
1893
+ "**/node_modules/**/*.*",
1894
+ "**/ci/results/**",
1895
+ "**/__version.ts",
1896
+ "**/cypress/results/**",
1897
+ "**/cypress/screenshots/**",
1898
+ "**/cypress/videos/**",
1899
+ "**/temp/**"
1520
1900
  ],
1521
1901
  "parserOptions": {
1522
1902
  "ecmaVersion": 2022,