@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,22 +2,71 @@
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
  "import-esm",
9
- "@vitest"
10
- ],
11
- "extends": [
12
- "eslint:recommended",
13
- "plugin:import/errors",
14
- "plugin:prettier/recommended",
15
- "plugin:regexp/recommended",
16
- "plugin:sonarjs/recommended-legacy",
17
- "plugin:import-esm/recommended",
18
- "plugin:@vitest/legacy-recommended"
8
+ "@vitest",
9
+ "no-only-tests"
19
10
  ],
20
11
  "rules": {
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",
21
70
  "no-console": [
22
71
  2,
23
72
  {
@@ -56,6 +105,13 @@
56
105
  ],
57
106
  "message": "Default import from React is not allowed. Use named imports instead."
58
107
  },
108
+ {
109
+ "name": "react-dom",
110
+ "importNames": [
111
+ "default"
112
+ ],
113
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
114
+ },
59
115
  {
60
116
  "name": "@gooddata/sdk-ui-kit",
61
117
  "importNames": [
@@ -563,6 +619,10 @@
563
619
  {
564
620
  "selector": "MemberExpression[object.name='React']",
565
621
  "message": "Do not use `React.*`. Use named imports instead."
622
+ },
623
+ {
624
+ "selector": "MemberExpression[object.name='ReactDOM']",
625
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
566
626
  }
567
627
  ],
568
628
  "sort-imports": [
@@ -582,16 +642,7 @@
582
642
  }
583
643
  ],
584
644
  "no-extra-boolean-cast": "error",
585
- "no-unexpected-multiline": "off",
586
- "no-warning-comments": [
587
- "warn",
588
- {
589
- "terms": [
590
- "todo"
591
- ],
592
- "location": "start"
593
- }
594
- ],
645
+ "no-unexpected-multiline": 0,
595
646
  "header/header": [
596
647
  2,
597
648
  "line",
@@ -601,7 +652,15 @@
601
652
  }
602
653
  ],
603
654
  "no-barrel-files/no-barrel-files": "error",
604
- "import/order": [
655
+ "import-x/no-unresolved": "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/order": [
605
664
  "error",
606
665
  {
607
666
  "pathGroups": [
@@ -636,20 +695,211 @@
636
695
  "newlines-between": "always"
637
696
  }
638
697
  ],
639
- "import/no-unassigned-import": "error",
640
- "no-only-tests/no-only-tests": [
641
- "error",
642
- {
643
- "block": [
644
- "fixture"
645
- ],
646
- "focus": [
647
- "only"
648
- ]
649
- }
650
- ],
651
- "regexp/prefer-d": "off",
652
- "regexp/prefer-w": "off",
698
+ "import-x/no-unassigned-import": "error",
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",
653
903
  "sonarjs/no-duplicate-string": "off",
654
904
  "sonarjs/cognitive-complexity": "warn",
655
905
  "sonarjs/todo-tag": "warn",
@@ -717,15 +967,75 @@
717
967
  "sonarjs/no-control-regex": "off",
718
968
  "no-caller": 2,
719
969
  "no-eval": 2,
720
- "no-delete-var": 2,
721
970
  "no-octal-escape": 2,
971
+ "curly": 0,
972
+ "@typescript-eslint/lines-around-comment": 0,
973
+ "@typescript-eslint/quotes": 0,
974
+ "unicorn/template-indent": 0,
975
+ "@typescript-eslint/block-spacing": "off",
976
+ "@typescript-eslint/brace-style": "off",
977
+ "@typescript-eslint/comma-dangle": "off",
978
+ "@typescript-eslint/comma-spacing": "off",
979
+ "@typescript-eslint/func-call-spacing": "off",
980
+ "@typescript-eslint/indent": "off",
981
+ "@typescript-eslint/key-spacing": "off",
982
+ "@typescript-eslint/keyword-spacing": "off",
983
+ "@typescript-eslint/member-delimiter-style": "off",
984
+ "@typescript-eslint/no-extra-parens": "off",
985
+ "@typescript-eslint/no-extra-semi": "off",
986
+ "@typescript-eslint/object-curly-spacing": "off",
987
+ "@typescript-eslint/semi": "off",
988
+ "@typescript-eslint/space-before-blocks": "off",
989
+ "@typescript-eslint/space-before-function-paren": "off",
990
+ "@typescript-eslint/space-infix-ops": "off",
991
+ "@typescript-eslint/type-annotation-spacing": "off",
992
+ "react/jsx-child-element-spacing": "off",
993
+ "react/jsx-closing-bracket-location": "off",
994
+ "react/jsx-closing-tag-location": "off",
995
+ "react/jsx-curly-newline": "off",
996
+ "react/jsx-curly-spacing": "off",
997
+ "react/jsx-equals-spacing": "off",
998
+ "react/jsx-first-prop-new-line": "off",
999
+ "react/jsx-indent": "off",
1000
+ "react/jsx-indent-props": "off",
1001
+ "react/jsx-max-props-per-line": "off",
1002
+ "react/jsx-newline": "off",
1003
+ "react/jsx-one-expression-per-line": "off",
1004
+ "react/jsx-props-no-multi-spaces": "off",
1005
+ "react/jsx-tag-spacing": "off",
1006
+ "react/jsx-wrap-multilines": "off",
1007
+ "unicorn/empty-brace-spaces": "off",
1008
+ "unicorn/no-nested-ternary": "off",
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",
722
1021
  "@vitest/expect-expect": "off",
723
1022
  "@vitest/no-commented-out-tests": "warn",
724
1023
  "@vitest/valid-title": "error",
725
1024
  "@vitest/no-disabled-tests": "warn",
726
1025
  "@vitest/no-focused-tests": "warn",
727
1026
  "@vitest/no-identical-title": "warn",
728
- "@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
+ ]
729
1039
  },
730
1040
  "overrides": [
731
1041
  {
@@ -757,6 +1067,13 @@
757
1067
  ],
758
1068
  "message": "Default import from React is not allowed. Use named imports instead."
759
1069
  },
1070
+ {
1071
+ "name": "react-dom",
1072
+ "importNames": [
1073
+ "default"
1074
+ ],
1075
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1076
+ },
760
1077
  {
761
1078
  "name": "@gooddata/sdk-ui-kit",
762
1079
  "importNames": [
@@ -1268,19 +1585,63 @@
1268
1585
  }
1269
1586
  },
1270
1587
  {
1271
- "parser": "@typescript-eslint/parser",
1272
1588
  "files": [
1273
- "**/*.ts",
1274
- "**/*.tsx"
1589
+ "**/eslint.config.ts",
1590
+ "**/eslint.config.js"
1275
1591
  ],
1276
- "extends": [
1277
- "plugin:@typescript-eslint/recommended-type-checked"
1592
+ "rules": {
1593
+ "no-restricted-exports": "off"
1594
+ }
1595
+ },
1596
+ {
1597
+ "files": [
1598
+ "**/*.ts",
1599
+ "**/*.tsx",
1600
+ "**/*.mts",
1601
+ "**/*.cts"
1278
1602
  ],
1279
- "parserOptions": {
1280
- "ecmaVersion": 2022,
1281
- "sourceType": "module"
1282
- },
1283
1603
  "rules": {
1604
+ "constructor-super": "off",
1605
+ "getter-return": "off",
1606
+ "no-class-assign": "off",
1607
+ "no-const-assign": "off",
1608
+ "no-dupe-args": "off",
1609
+ "no-dupe-class-members": "off",
1610
+ "no-dupe-keys": "off",
1611
+ "no-func-assign": "off",
1612
+ "no-import-assign": "off",
1613
+ "no-new-native-nonconstructor": "off",
1614
+ "no-new-symbol": "off",
1615
+ "no-obj-calls": "off",
1616
+ "no-redeclare": "off",
1617
+ "no-setter-return": "off",
1618
+ "no-this-before-super": "off",
1619
+ "no-undef": "off",
1620
+ "no-unreachable": "off",
1621
+ "no-unsafe-negation": "off",
1622
+ "no-var": "error",
1623
+ "no-with": "off",
1624
+ "prefer-const": "error",
1625
+ "prefer-rest-params": "error",
1626
+ "prefer-spread": "error",
1627
+ "no-array-constructor": "off",
1628
+ "no-unused-expressions": "off",
1629
+ "no-unused-vars": "off",
1630
+ "@typescript-eslint/no-array-constructor": "error",
1631
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1632
+ "@typescript-eslint/no-empty-object-type": "error",
1633
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1634
+ "@typescript-eslint/no-misused-new": "error",
1635
+ "@typescript-eslint/no-namespace": "error",
1636
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1637
+ "@typescript-eslint/no-require-imports": "error",
1638
+ "@typescript-eslint/no-this-alias": "error",
1639
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1640
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1641
+ "@typescript-eslint/no-unused-expressions": "error",
1642
+ "@typescript-eslint/prefer-as-const": "error",
1643
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1644
+ "@typescript-eslint/triple-slash-reference": "error",
1284
1645
  "@typescript-eslint/explicit-function-return-type": 0,
1285
1646
  "@typescript-eslint/no-use-before-define": 0,
1286
1647
  "@typescript-eslint/no-empty-function": 0,
@@ -1379,17 +1740,53 @@
1379
1740
  "fixStyle": "inline-type-imports"
1380
1741
  }
1381
1742
  ]
1743
+ },
1744
+ "parser": "@typescript-eslint/parser",
1745
+ "parserOptions": {
1746
+ "ecmaVersion": 2022,
1747
+ "sourceType": "module",
1748
+ "projectService": true
1382
1749
  }
1383
1750
  },
1384
1751
  {
1385
- "parser": "@typescript-eslint/parser",
1386
1752
  "files": [
1387
1753
  "**/*.ts",
1754
+ "**/*.cts",
1755
+ "**/*.mts",
1388
1756
  "**/*.tsx"
1389
1757
  ],
1390
- "extends": [
1391
- "plugin:import/typescript"
1392
- ]
1758
+ "settings": {
1759
+ "import-x/extensions": [
1760
+ ".ts",
1761
+ ".cts",
1762
+ ".mts",
1763
+ ".tsx",
1764
+ ".js",
1765
+ ".jsx",
1766
+ ".mjs",
1767
+ ".cjs"
1768
+ ],
1769
+ "import-x/external-module-folders": [
1770
+ "node_modules",
1771
+ "node_modules/@types"
1772
+ ],
1773
+ "import-x/parsers": {
1774
+ "@typescript-eslint/parser": [
1775
+ ".ts",
1776
+ ".cts",
1777
+ ".mts",
1778
+ ".tsx"
1779
+ ]
1780
+ },
1781
+ "import-x/resolver": {
1782
+ "typescript": {
1783
+ "alwaysTryTypes": true
1784
+ }
1785
+ }
1786
+ },
1787
+ "rules": {
1788
+ "import-x/named": "off"
1789
+ }
1393
1790
  },
1394
1791
  {
1395
1792
  "files": [
@@ -1416,63 +1813,30 @@
1416
1813
  "rules": {
1417
1814
  "sonarjs/no-identical-functions": "off"
1418
1815
  }
1419
- },
1420
- {
1421
- "parser": "@typescript-eslint/parser",
1422
- "files": [
1423
- "**/*.ts",
1424
- "**/*.tsx"
1425
- ],
1426
- "parserOptions": {
1427
- "ecmaVersion": 2022,
1428
- "sourceType": "module"
1429
- },
1430
- "plugins": [
1431
- "tsdoc",
1432
- "jsdoc"
1433
- ],
1434
- "settings": {
1435
- "jsdoc": {
1436
- "mode": "typescript"
1437
- }
1438
- },
1439
- "rules": {
1440
- "tsdoc/syntax": "error",
1441
- "jsdoc/require-param": [
1442
- "error",
1443
- {
1444
- "contexts": [
1445
- {
1446
- "context": "FunctionDeclaration",
1447
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1448
- },
1449
- {
1450
- "context": "FunctionExpression",
1451
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1452
- },
1453
- {
1454
- "context": "ArrowFunctionExpression",
1455
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1456
- },
1457
- {
1458
- "context": "MethodDefinition",
1459
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1460
- }
1461
- ]
1462
- }
1463
- ],
1464
- "jsdoc/require-param-type": "off"
1465
- }
1466
1816
  }
1467
1817
  ],
1468
- "settings": {},
1818
+ "settings": {
1819
+ "import-x/extensions": [
1820
+ ".js",
1821
+ ".jsx",
1822
+ ".mjs",
1823
+ ".cjs"
1824
+ ]
1825
+ },
1469
1826
  "env": {
1470
1827
  "node": true,
1471
1828
  "es2022": true
1472
1829
  },
1473
1830
  "ignorePatterns": [
1474
1831
  "**/dist/**/*.*",
1475
- "**/esm/**/*.*"
1832
+ "**/esm/**/*.*",
1833
+ "**/node_modules/**/*.*",
1834
+ "**/ci/results/**",
1835
+ "**/__version.ts",
1836
+ "**/cypress/results/**",
1837
+ "**/cypress/screenshots/**",
1838
+ "**/cypress/videos/**",
1839
+ "**/temp/**"
1476
1840
  ],
1477
1841
  "parserOptions": {
1478
1842
  "ecmaVersion": 2022,