@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,23 +2,72 @@
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
- "@vitest"
11
- ],
12
- "extends": [
13
- "eslint:recommended",
14
- "plugin:import/errors",
15
- "plugin:prettier/recommended",
16
- "plugin:regexp/recommended",
17
- "plugin:sonarjs/recommended-legacy",
18
- "plugin:react-hooks/recommended",
19
- "plugin:@vitest/legacy-recommended"
9
+ "@vitest",
10
+ "no-only-tests"
20
11
  ],
21
12
  "rules": {
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",
22
71
  "no-console": [
23
72
  2,
24
73
  {
@@ -57,6 +106,13 @@
57
106
  ],
58
107
  "message": "Default import from React is not allowed. Use named imports instead."
59
108
  },
109
+ {
110
+ "name": "react-dom",
111
+ "importNames": [
112
+ "default"
113
+ ],
114
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
115
+ },
60
116
  {
61
117
  "name": "@gooddata/sdk-ui-kit",
62
118
  "importNames": [
@@ -564,6 +620,10 @@
564
620
  {
565
621
  "selector": "MemberExpression[object.name='React']",
566
622
  "message": "Do not use `React.*`. Use named imports instead."
623
+ },
624
+ {
625
+ "selector": "MemberExpression[object.name='ReactDOM']",
626
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
567
627
  }
568
628
  ],
569
629
  "sort-imports": [
@@ -583,16 +643,7 @@
583
643
  }
584
644
  ],
585
645
  "no-extra-boolean-cast": "error",
586
- "no-unexpected-multiline": "off",
587
- "no-warning-comments": [
588
- "warn",
589
- {
590
- "terms": [
591
- "todo"
592
- ],
593
- "location": "start"
594
- }
595
- ],
646
+ "no-unexpected-multiline": 0,
596
647
  "header/header": [
597
648
  2,
598
649
  "line",
@@ -602,7 +653,15 @@
602
653
  }
603
654
  ],
604
655
  "no-barrel-files/no-barrel-files": "error",
605
- "import/order": [
656
+ "import-x/no-unresolved": "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/order": [
606
665
  "error",
607
666
  {
608
667
  "pathGroups": [
@@ -637,20 +696,211 @@
637
696
  "newlines-between": "always"
638
697
  }
639
698
  ],
640
- "import/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
+ "import-x/no-unassigned-import": "error",
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",
654
904
  "sonarjs/no-duplicate-string": "off",
655
905
  "sonarjs/cognitive-complexity": "warn",
656
906
  "sonarjs/todo-tag": "warn",
@@ -718,8 +968,46 @@
718
968
  "sonarjs/no-control-regex": "off",
719
969
  "no-caller": 2,
720
970
  "no-eval": 2,
721
- "no-delete-var": 2,
722
971
  "no-octal-escape": 2,
972
+ "curly": 0,
973
+ "@typescript-eslint/lines-around-comment": 0,
974
+ "@typescript-eslint/quotes": 0,
975
+ "unicorn/template-indent": 0,
976
+ "@typescript-eslint/block-spacing": "off",
977
+ "@typescript-eslint/brace-style": "off",
978
+ "@typescript-eslint/comma-dangle": "off",
979
+ "@typescript-eslint/comma-spacing": "off",
980
+ "@typescript-eslint/func-call-spacing": "off",
981
+ "@typescript-eslint/indent": "off",
982
+ "@typescript-eslint/key-spacing": "off",
983
+ "@typescript-eslint/keyword-spacing": "off",
984
+ "@typescript-eslint/member-delimiter-style": "off",
985
+ "@typescript-eslint/no-extra-parens": "off",
986
+ "@typescript-eslint/no-extra-semi": "off",
987
+ "@typescript-eslint/object-curly-spacing": "off",
988
+ "@typescript-eslint/semi": "off",
989
+ "@typescript-eslint/space-before-blocks": "off",
990
+ "@typescript-eslint/space-before-function-paren": "off",
991
+ "@typescript-eslint/space-infix-ops": "off",
992
+ "@typescript-eslint/type-annotation-spacing": "off",
993
+ "react/jsx-child-element-spacing": "off",
994
+ "react/jsx-closing-bracket-location": "off",
995
+ "react/jsx-closing-tag-location": "off",
996
+ "react/jsx-curly-newline": "off",
997
+ "react/jsx-curly-spacing": "off",
998
+ "react/jsx-equals-spacing": "off",
999
+ "react/jsx-first-prop-new-line": "off",
1000
+ "react/jsx-indent": "off",
1001
+ "react/jsx-indent-props": "off",
1002
+ "react/jsx-max-props-per-line": "off",
1003
+ "react/jsx-newline": "off",
1004
+ "react/jsx-one-expression-per-line": "off",
1005
+ "react/jsx-props-no-multi-spaces": "off",
1006
+ "react/jsx-tag-spacing": "off",
1007
+ "react/jsx-wrap-multilines": "off",
1008
+ "unicorn/empty-brace-spaces": "off",
1009
+ "unicorn/no-nested-ternary": "off",
1010
+ "unicorn/number-literal-case": "off",
723
1011
  "react/no-danger": "error",
724
1012
  "react/prop-types": "off",
725
1013
  "react/function-component-definition": [
@@ -745,13 +1033,34 @@
745
1033
  "react/react-in-jsx-scope": "off",
746
1034
  "react-hooks/rules-of-hooks": "error",
747
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",
748
1046
  "@vitest/expect-expect": "off",
749
1047
  "@vitest/no-commented-out-tests": "warn",
750
1048
  "@vitest/valid-title": "error",
751
1049
  "@vitest/no-disabled-tests": "warn",
752
1050
  "@vitest/no-focused-tests": "warn",
753
1051
  "@vitest/no-identical-title": "warn",
754
- "@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
+ ]
755
1064
  },
756
1065
  "overrides": [
757
1066
  {
@@ -783,6 +1092,13 @@
783
1092
  ],
784
1093
  "message": "Default import from React is not allowed. Use named imports instead."
785
1094
  },
1095
+ {
1096
+ "name": "react-dom",
1097
+ "importNames": [
1098
+ "default"
1099
+ ],
1100
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1101
+ },
786
1102
  {
787
1103
  "name": "@gooddata/sdk-ui-kit",
788
1104
  "importNames": [
@@ -1294,19 +1610,63 @@
1294
1610
  }
1295
1611
  },
1296
1612
  {
1297
- "parser": "@typescript-eslint/parser",
1298
1613
  "files": [
1299
- "**/*.ts",
1300
- "**/*.tsx"
1614
+ "**/eslint.config.ts",
1615
+ "**/eslint.config.js"
1301
1616
  ],
1302
- "extends": [
1303
- "plugin:@typescript-eslint/recommended-type-checked"
1617
+ "rules": {
1618
+ "no-restricted-exports": "off"
1619
+ }
1620
+ },
1621
+ {
1622
+ "files": [
1623
+ "**/*.ts",
1624
+ "**/*.tsx",
1625
+ "**/*.mts",
1626
+ "**/*.cts"
1304
1627
  ],
1305
- "parserOptions": {
1306
- "ecmaVersion": 2022,
1307
- "sourceType": "module"
1308
- },
1309
1628
  "rules": {
1629
+ "constructor-super": "off",
1630
+ "getter-return": "off",
1631
+ "no-class-assign": "off",
1632
+ "no-const-assign": "off",
1633
+ "no-dupe-args": "off",
1634
+ "no-dupe-class-members": "off",
1635
+ "no-dupe-keys": "off",
1636
+ "no-func-assign": "off",
1637
+ "no-import-assign": "off",
1638
+ "no-new-native-nonconstructor": "off",
1639
+ "no-new-symbol": "off",
1640
+ "no-obj-calls": "off",
1641
+ "no-redeclare": "off",
1642
+ "no-setter-return": "off",
1643
+ "no-this-before-super": "off",
1644
+ "no-undef": "off",
1645
+ "no-unreachable": "off",
1646
+ "no-unsafe-negation": "off",
1647
+ "no-var": "error",
1648
+ "no-with": "off",
1649
+ "prefer-const": "error",
1650
+ "prefer-rest-params": "error",
1651
+ "prefer-spread": "error",
1652
+ "no-array-constructor": "off",
1653
+ "no-unused-expressions": "off",
1654
+ "no-unused-vars": "off",
1655
+ "@typescript-eslint/no-array-constructor": "error",
1656
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1657
+ "@typescript-eslint/no-empty-object-type": "error",
1658
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1659
+ "@typescript-eslint/no-misused-new": "error",
1660
+ "@typescript-eslint/no-namespace": "error",
1661
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1662
+ "@typescript-eslint/no-require-imports": "error",
1663
+ "@typescript-eslint/no-this-alias": "error",
1664
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1665
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1666
+ "@typescript-eslint/no-unused-expressions": "error",
1667
+ "@typescript-eslint/prefer-as-const": "error",
1668
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1669
+ "@typescript-eslint/triple-slash-reference": "error",
1310
1670
  "@typescript-eslint/explicit-function-return-type": 0,
1311
1671
  "@typescript-eslint/no-use-before-define": 0,
1312
1672
  "@typescript-eslint/no-empty-function": 0,
@@ -1405,17 +1765,53 @@
1405
1765
  "fixStyle": "inline-type-imports"
1406
1766
  }
1407
1767
  ]
1768
+ },
1769
+ "parser": "@typescript-eslint/parser",
1770
+ "parserOptions": {
1771
+ "ecmaVersion": 2022,
1772
+ "sourceType": "module",
1773
+ "projectService": true
1408
1774
  }
1409
1775
  },
1410
1776
  {
1411
- "parser": "@typescript-eslint/parser",
1412
1777
  "files": [
1413
1778
  "**/*.ts",
1779
+ "**/*.cts",
1780
+ "**/*.mts",
1414
1781
  "**/*.tsx"
1415
1782
  ],
1416
- "extends": [
1417
- "plugin:import/typescript"
1418
- ]
1783
+ "settings": {
1784
+ "import-x/extensions": [
1785
+ ".ts",
1786
+ ".cts",
1787
+ ".mts",
1788
+ ".tsx",
1789
+ ".js",
1790
+ ".jsx",
1791
+ ".mjs",
1792
+ ".cjs"
1793
+ ],
1794
+ "import-x/external-module-folders": [
1795
+ "node_modules",
1796
+ "node_modules/@types"
1797
+ ],
1798
+ "import-x/parsers": {
1799
+ "@typescript-eslint/parser": [
1800
+ ".ts",
1801
+ ".cts",
1802
+ ".mts",
1803
+ ".tsx"
1804
+ ]
1805
+ },
1806
+ "import-x/resolver": {
1807
+ "typescript": {
1808
+ "alwaysTryTypes": true
1809
+ }
1810
+ }
1811
+ },
1812
+ "rules": {
1813
+ "import-x/named": "off"
1814
+ }
1419
1815
  },
1420
1816
  {
1421
1817
  "files": [
@@ -1442,56 +1838,15 @@
1442
1838
  "rules": {
1443
1839
  "sonarjs/no-identical-functions": "off"
1444
1840
  }
1445
- },
1446
- {
1447
- "parser": "@typescript-eslint/parser",
1448
- "files": [
1449
- "**/*.ts",
1450
- "**/*.tsx"
1451
- ],
1452
- "parserOptions": {
1453
- "ecmaVersion": 2022,
1454
- "sourceType": "module"
1455
- },
1456
- "plugins": [
1457
- "tsdoc",
1458
- "jsdoc"
1459
- ],
1460
- "settings": {
1461
- "jsdoc": {
1462
- "mode": "typescript"
1463
- }
1464
- },
1465
- "rules": {
1466
- "tsdoc/syntax": "error",
1467
- "jsdoc/require-param": [
1468
- "error",
1469
- {
1470
- "contexts": [
1471
- {
1472
- "context": "FunctionDeclaration",
1473
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1474
- },
1475
- {
1476
- "context": "FunctionExpression",
1477
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1478
- },
1479
- {
1480
- "context": "ArrowFunctionExpression",
1481
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1482
- },
1483
- {
1484
- "context": "MethodDefinition",
1485
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1486
- }
1487
- ]
1488
- }
1489
- ],
1490
- "jsdoc/require-param-type": "off"
1491
- }
1492
1841
  }
1493
1842
  ],
1494
1843
  "settings": {
1844
+ "import-x/extensions": [
1845
+ ".js",
1846
+ ".jsx",
1847
+ ".mjs",
1848
+ ".cjs"
1849
+ ],
1495
1850
  "react": {
1496
1851
  "version": "detect"
1497
1852
  }
@@ -1503,7 +1858,14 @@
1503
1858
  },
1504
1859
  "ignorePatterns": [
1505
1860
  "**/dist/**/*.*",
1506
- "**/esm/**/*.*"
1861
+ "**/esm/**/*.*",
1862
+ "**/node_modules/**/*.*",
1863
+ "**/ci/results/**",
1864
+ "**/__version.ts",
1865
+ "**/cypress/results/**",
1866
+ "**/cypress/screenshots/**",
1867
+ "**/cypress/videos/**",
1868
+ "**/temp/**"
1507
1869
  ],
1508
1870
  "parserOptions": {
1509
1871
  "ecmaVersion": 2022,