@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
package/dist/vitest.json CHANGED
@@ -2,20 +2,70 @@
2
2
  "plugins": [
3
3
  "header",
4
4
  "no-barrel-files",
5
- "import",
6
- "no-only-tests",
5
+ "import-x",
7
6
  "sonarjs",
8
- "@vitest"
9
- ],
10
- "extends": [
11
- "eslint:recommended",
12
- "plugin:import/errors",
13
- "plugin:prettier/recommended",
14
- "plugin:regexp/recommended",
15
- "plugin:sonarjs/recommended-legacy",
16
- "plugin:@vitest/legacy-recommended"
7
+ "@vitest",
8
+ "no-only-tests"
17
9
  ],
18
10
  "rules": {
11
+ "constructor-super": "error",
12
+ "for-direction": "error",
13
+ "getter-return": "error",
14
+ "no-async-promise-executor": "error",
15
+ "no-case-declarations": "error",
16
+ "no-class-assign": "error",
17
+ "no-compare-neg-zero": "error",
18
+ "no-cond-assign": "error",
19
+ "no-const-assign": "error",
20
+ "no-constant-binary-expression": "error",
21
+ "no-constant-condition": "error",
22
+ "no-control-regex": "error",
23
+ "no-debugger": "error",
24
+ "no-delete-var": 2,
25
+ "no-dupe-args": "error",
26
+ "no-dupe-class-members": "error",
27
+ "no-dupe-else-if": "error",
28
+ "no-dupe-keys": "error",
29
+ "no-duplicate-case": "error",
30
+ "no-empty": "error",
31
+ "no-empty-character-class": "error",
32
+ "no-empty-pattern": "error",
33
+ "no-empty-static-block": "error",
34
+ "no-ex-assign": "error",
35
+ "no-fallthrough": "error",
36
+ "no-func-assign": "error",
37
+ "no-global-assign": "error",
38
+ "no-import-assign": "error",
39
+ "no-invalid-regexp": "error",
40
+ "no-irregular-whitespace": "error",
41
+ "no-loss-of-precision": "error",
42
+ "no-misleading-character-class": "error",
43
+ "no-new-native-nonconstructor": "error",
44
+ "no-nonoctal-decimal-escape": "error",
45
+ "no-obj-calls": "error",
46
+ "no-octal": "error",
47
+ "no-prototype-builtins": "error",
48
+ "no-redeclare": "error",
49
+ "no-regex-spaces": "error",
50
+ "no-self-assign": "error",
51
+ "no-setter-return": "error",
52
+ "no-shadow-restricted-names": "error",
53
+ "no-sparse-arrays": "error",
54
+ "no-this-before-super": "error",
55
+ "no-undef": "error",
56
+ "no-unreachable": "error",
57
+ "no-unsafe-finally": "error",
58
+ "no-unsafe-negation": "error",
59
+ "no-unsafe-optional-chaining": "error",
60
+ "no-unused-labels": "error",
61
+ "no-unused-private-class-members": "error",
62
+ "no-unused-vars": "error",
63
+ "no-useless-backreference": "error",
64
+ "no-useless-catch": "error",
65
+ "no-with": "error",
66
+ "require-yield": "error",
67
+ "use-isnan": "error",
68
+ "valid-typeof": "error",
19
69
  "no-console": [
20
70
  2,
21
71
  {
@@ -54,6 +104,13 @@
54
104
  ],
55
105
  "message": "Default import from React is not allowed. Use named imports instead."
56
106
  },
107
+ {
108
+ "name": "react-dom",
109
+ "importNames": [
110
+ "default"
111
+ ],
112
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
113
+ },
57
114
  {
58
115
  "name": "@gooddata/sdk-ui-kit",
59
116
  "importNames": [
@@ -561,6 +618,10 @@
561
618
  {
562
619
  "selector": "MemberExpression[object.name='React']",
563
620
  "message": "Do not use `React.*`. Use named imports instead."
621
+ },
622
+ {
623
+ "selector": "MemberExpression[object.name='ReactDOM']",
624
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
564
625
  }
565
626
  ],
566
627
  "sort-imports": [
@@ -580,16 +641,7 @@
580
641
  }
581
642
  ],
582
643
  "no-extra-boolean-cast": "error",
583
- "no-unexpected-multiline": "off",
584
- "no-warning-comments": [
585
- "warn",
586
- {
587
- "terms": [
588
- "todo"
589
- ],
590
- "location": "start"
591
- }
592
- ],
644
+ "no-unexpected-multiline": 0,
593
645
  "header/header": [
594
646
  2,
595
647
  "line",
@@ -599,7 +651,15 @@
599
651
  }
600
652
  ],
601
653
  "no-barrel-files/no-barrel-files": "error",
602
- "import/order": [
654
+ "import-x/no-unresolved": "error",
655
+ "import-x/named": "error",
656
+ "import-x/namespace": "error",
657
+ "import-x/default": "error",
658
+ "import-x/export": "error",
659
+ "import-x/no-named-as-default": "warn",
660
+ "import-x/no-named-as-default-member": "warn",
661
+ "import-x/no-duplicates": "warn",
662
+ "import-x/order": [
603
663
  "error",
604
664
  {
605
665
  "pathGroups": [
@@ -634,20 +694,211 @@
634
694
  "newlines-between": "always"
635
695
  }
636
696
  ],
637
- "import/no-unassigned-import": "error",
638
- "no-only-tests/no-only-tests": [
639
- "error",
640
- {
641
- "block": [
642
- "fixture"
643
- ],
644
- "focus": [
645
- "only"
646
- ]
647
- }
648
- ],
649
- "regexp/prefer-d": "off",
650
- "regexp/prefer-w": "off",
697
+ "import-x/no-unassigned-import": "error",
698
+ "sonarjs/function-name": "off",
699
+ "sonarjs/max-lines": "off",
700
+ "sonarjs/no-tab": "off",
701
+ "sonarjs/variable-name": "off",
702
+ "sonarjs/comment-regex": "off",
703
+ "sonarjs/elseif-without-else": "off",
704
+ "sonarjs/no-fallthrough": "error",
705
+ "sonarjs/nested-control-flow": "off",
706
+ "sonarjs/too-many-break-or-continue-in-loop": "off",
707
+ "sonarjs/max-lines-per-function": "off",
708
+ "sonarjs/no-nested-incdec": "off",
709
+ "sonarjs/no-equals-in-for-termination": "error",
710
+ "sonarjs/no-extra-arguments": "error",
711
+ "sonarjs/no-collapsible-if": "off",
712
+ "sonarjs/expression-complexity": "off",
713
+ "sonarjs/no-redundant-parentheses": "off",
714
+ "sonarjs/no-labels": "error",
715
+ "sonarjs/no-redundant-boolean": "error",
716
+ "sonarjs/prefer-single-boolean-return": "error",
717
+ "sonarjs/unused-import": "error",
718
+ "sonarjs/useless-string-operation": "off",
719
+ "sonarjs/no-unused-function-argument": "off",
720
+ "sonarjs/no-case-label-in-switch": "error",
721
+ "sonarjs/no-parameter-reassignment": "error",
722
+ "sonarjs/prefer-while": "error",
723
+ "sonarjs/no-sonar-comments": "off",
724
+ "sonarjs/no-small-switch": "error",
725
+ "sonarjs/no-hardcoded-ip": "error",
726
+ "sonarjs/label-position": "error",
727
+ "sonarjs/file-header": "off",
728
+ "sonarjs/call-argument-line": "error",
729
+ "sonarjs/max-switch-cases": "error",
730
+ "sonarjs/prefer-immediate-return": "off",
731
+ "sonarjs/function-inside-loop": "error",
732
+ "sonarjs/no-variable-usage-before-declaration": "off",
733
+ "sonarjs/future-reserved-words": "error",
734
+ "sonarjs/array-constructor": "off",
735
+ "sonarjs/bitwise-operators": "error",
736
+ "sonarjs/no-function-declaration-in-block": "off",
737
+ "sonarjs/no-primitive-wrappers": "error",
738
+ "sonarjs/for-in": "off",
739
+ "sonarjs/cyclomatic-complexity": "off",
740
+ "sonarjs/no-identical-expressions": "error",
741
+ "sonarjs/no-nested-switch": "off",
742
+ "sonarjs/no-identical-conditions": "error",
743
+ "sonarjs/no-duplicated-branches": "error",
744
+ "sonarjs/misplaced-loop-counter": "error",
745
+ "sonarjs/sql-queries": "error",
746
+ "sonarjs/insecure-cookie": "error",
747
+ "sonarjs/no-useless-increment": "error",
748
+ "sonarjs/no-undefined-assignment": "off",
749
+ "sonarjs/no-wildcard-import": "off",
750
+ "sonarjs/for-loop-increment-sign": "error",
751
+ "sonarjs/cookies": "off",
752
+ "sonarjs/null-dereference": "error",
753
+ "sonarjs/updated-loop-counter": "error",
754
+ "sonarjs/block-scoped-var": "error",
755
+ "sonarjs/no-built-in-override": "off",
756
+ "sonarjs/prefer-object-literal": "off",
757
+ "sonarjs/no-gratuitous-expressions": "error",
758
+ "sonarjs/file-uploads": "error",
759
+ "sonarjs/file-permissions": "error",
760
+ "sonarjs/no-empty-character-class": "error",
761
+ "sonarjs/no-unenclosed-multiline-block": "error",
762
+ "sonarjs/index-of-compare-to-positive-number": "error",
763
+ "sonarjs/no-useless-catch": "error",
764
+ "sonarjs/xml-parser-xxe": "error",
765
+ "sonarjs/non-existent-operator": "error",
766
+ "sonarjs/web-sql-database": "off",
767
+ "sonarjs/no-array-delete": "error",
768
+ "sonarjs/no-incomplete-assertions": "error",
769
+ "sonarjs/no-global-this": "error",
770
+ "sonarjs/new-operator-misuse": "error",
771
+ "sonarjs/no-delete-var": "error",
772
+ "sonarjs/strings-comparison": "off",
773
+ "sonarjs/file-name-differ-from-class": "off",
774
+ "sonarjs/cookie-no-httponly": "error",
775
+ "sonarjs/no-incorrect-string-concat": "off",
776
+ "sonarjs/inverted-assertion-arguments": "error",
777
+ "sonarjs/shorthand-property-grouping": "off",
778
+ "sonarjs/updated-const-var": "error",
779
+ "sonarjs/arguments-usage": "off",
780
+ "sonarjs/destructuring-assignment-syntax": "off",
781
+ "sonarjs/arrow-function-convention": "off",
782
+ "sonarjs/class-prototype": "off",
783
+ "sonarjs/no-require-or-define": "off",
784
+ "sonarjs/no-associative-arrays": "error",
785
+ "sonarjs/comma-or-logical-or-case": "error",
786
+ "sonarjs/no-redundant-jump": "error",
787
+ "sonarjs/inconsistent-function-call": "error",
788
+ "sonarjs/no-use-of-empty-return-value": "error",
789
+ "sonarjs/enforce-trailing-comma": "off",
790
+ "sonarjs/operation-returning-nan": "off",
791
+ "sonarjs/values-not-convertible-to-numbers": "off",
792
+ "sonarjs/non-number-in-arithmetic-expression": "off",
793
+ "sonarjs/in-operator-type-error": "error",
794
+ "sonarjs/declarations-in-global-scope": "off",
795
+ "sonarjs/no-inconsistent-returns": "off",
796
+ "sonarjs/no-reference-error": "off",
797
+ "sonarjs/super-invocation": "error",
798
+ "sonarjs/no-all-duplicated-branches": "error",
799
+ "sonarjs/no-same-line-conditional": "error",
800
+ "sonarjs/conditional-indentation": "off",
801
+ "sonarjs/no-collection-size-mischeck": "error",
802
+ "sonarjs/no-unthrown-error": "error",
803
+ "sonarjs/no-unused-collection": "error",
804
+ "sonarjs/no-for-in-iterable": "off",
805
+ "sonarjs/no-element-overwrite": "error",
806
+ "sonarjs/no-identical-functions": "error",
807
+ "sonarjs/no-empty-collection": "error",
808
+ "sonarjs/no-redundant-assignments": "error",
809
+ "sonarjs/prefer-type-guard": "error",
810
+ "sonarjs/no-return-type-any": "off",
811
+ "sonarjs/no-implicit-dependencies": "off",
812
+ "sonarjs/weak-ssl": "error",
813
+ "sonarjs/no-weak-keys": "error",
814
+ "sonarjs/csrf": "error",
815
+ "sonarjs/production-debug": "error",
816
+ "sonarjs/no-in-misuse": "error",
817
+ "sonarjs/no-duplicate-in-composite": "error",
818
+ "sonarjs/max-union-size": "off",
819
+ "sonarjs/no-nested-template-literals": "error",
820
+ "sonarjs/regular-expr": "off",
821
+ "sonarjs/encryption": "off",
822
+ "sonarjs/hashing": "error",
823
+ "sonarjs/bool-param-default": "off",
824
+ "sonarjs/xpath": "off",
825
+ "sonarjs/sockets": "off",
826
+ "sonarjs/process-argv": "off",
827
+ "sonarjs/standard-input": "off",
828
+ "sonarjs/unverified-certificate": "error",
829
+ "sonarjs/cors": "error",
830
+ "sonarjs/disabled-auto-escaping": "error",
831
+ "sonarjs/no-table-as-layout": "error",
832
+ "sonarjs/table-header-reference": "error",
833
+ "sonarjs/object-alt-content": "error",
834
+ "sonarjs/publicly-writable-directories": "error",
835
+ "sonarjs/unverified-hostname": "error",
836
+ "sonarjs/encryption-secure-mode": "error",
837
+ "sonarjs/no-weak-cipher": "error",
838
+ "sonarjs/no-intrusive-permissions": "error",
839
+ "sonarjs/insecure-jwt-token": "error",
840
+ "sonarjs/x-powered-by": "error",
841
+ "sonarjs/hidden-files": "error",
842
+ "sonarjs/content-length": "error",
843
+ "sonarjs/disabled-resource-integrity": "error",
844
+ "sonarjs/content-security-policy": "error",
845
+ "sonarjs/no-mixed-content": "error",
846
+ "sonarjs/frame-ancestors": "error",
847
+ "sonarjs/no-mime-sniff": "error",
848
+ "sonarjs/no-referrer-policy": "error",
849
+ "sonarjs/strict-transport-security": "error",
850
+ "sonarjs/certificate-transparency": "off",
851
+ "sonarjs/dns-prefetching": "off",
852
+ "sonarjs/confidential-information-logging": "error",
853
+ "sonarjs/no-ip-forward": "error",
854
+ "sonarjs/no-invalid-regexp": "error",
855
+ "sonarjs/unused-named-groups": "error",
856
+ "sonarjs/no-same-argument-assert": "error",
857
+ "sonarjs/unicode-aware-regex": "off",
858
+ "sonarjs/no-misleading-character-class": "error",
859
+ "sonarjs/session-regeneration": "error",
860
+ "sonarjs/test-check-exception": "error",
861
+ "sonarjs/stable-tests": "error",
862
+ "sonarjs/no-empty-after-reluctant": "error",
863
+ "sonarjs/no-code-after-done": "error",
864
+ "sonarjs/disabled-timeout": "error",
865
+ "sonarjs/chai-determinate-assertion": "error",
866
+ "sonarjs/aws-s3-bucket-server-encryption": "off",
867
+ "sonarjs/aws-s3-bucket-insecure-http": "error",
868
+ "sonarjs/aws-s3-bucket-versioning": "error",
869
+ "sonarjs/aws-s3-bucket-granted-access": "error",
870
+ "sonarjs/no-angular-bypass-sanitization": "error",
871
+ "sonarjs/aws-iam-public-access": "error",
872
+ "sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
873
+ "sonarjs/aws-s3-bucket-public-access": "error",
874
+ "sonarjs/no-vue-bypass-sanitization": "off",
875
+ "sonarjs/aws-iam-all-privileges": "error",
876
+ "sonarjs/aws-rds-unencrypted-databases": "error",
877
+ "sonarjs/aws-iam-all-resources-accessible": "off",
878
+ "sonarjs/aws-opensearchservice-domain": "error",
879
+ "sonarjs/aws-iam-privilege-escalation": "error",
880
+ "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
881
+ "sonarjs/aws-restricted-ip-admin-access": "error",
882
+ "sonarjs/no-empty-alternatives": "error",
883
+ "sonarjs/no-regex-spaces": "error",
884
+ "sonarjs/aws-sns-unencrypted-topics": "error",
885
+ "sonarjs/existing-groups": "error",
886
+ "sonarjs/aws-ec2-rds-dms-public": "error",
887
+ "sonarjs/aws-sqs-unencrypted-queue": "error",
888
+ "sonarjs/no-empty-group": "error",
889
+ "sonarjs/aws-efs-unencrypted": "error",
890
+ "sonarjs/aws-apigateway-public-api": "error",
891
+ "sonarjs/stateful-regex": "error",
892
+ "sonarjs/single-char-in-character-classes": "error",
893
+ "sonarjs/no-exclusive-tests": "error",
894
+ "sonarjs/hardcoded-secret-signatures": "error",
895
+ "sonarjs/jsx-no-leaked-render": "error",
896
+ "sonarjs/no-hook-setter-in-body": "error",
897
+ "sonarjs/no-uniq-key": "error",
898
+ "sonarjs/no-internal-api-use": "error",
899
+ "sonarjs/no-literal-call": "error",
900
+ "sonarjs/review-blockchain-mnemonic": "error",
901
+ "sonarjs/dynamically-constructed-templates": "error",
651
902
  "sonarjs/no-duplicate-string": "off",
652
903
  "sonarjs/cognitive-complexity": "warn",
653
904
  "sonarjs/todo-tag": "warn",
@@ -715,15 +966,74 @@
715
966
  "sonarjs/no-control-regex": "off",
716
967
  "no-caller": 2,
717
968
  "no-eval": 2,
718
- "no-delete-var": 2,
719
969
  "no-octal-escape": 2,
970
+ "curly": 0,
971
+ "@typescript-eslint/lines-around-comment": 0,
972
+ "@typescript-eslint/quotes": 0,
973
+ "unicorn/template-indent": 0,
974
+ "@typescript-eslint/block-spacing": "off",
975
+ "@typescript-eslint/brace-style": "off",
976
+ "@typescript-eslint/comma-dangle": "off",
977
+ "@typescript-eslint/comma-spacing": "off",
978
+ "@typescript-eslint/func-call-spacing": "off",
979
+ "@typescript-eslint/indent": "off",
980
+ "@typescript-eslint/key-spacing": "off",
981
+ "@typescript-eslint/keyword-spacing": "off",
982
+ "@typescript-eslint/member-delimiter-style": "off",
983
+ "@typescript-eslint/no-extra-parens": "off",
984
+ "@typescript-eslint/no-extra-semi": "off",
985
+ "@typescript-eslint/object-curly-spacing": "off",
986
+ "@typescript-eslint/semi": "off",
987
+ "@typescript-eslint/space-before-blocks": "off",
988
+ "@typescript-eslint/space-before-function-paren": "off",
989
+ "@typescript-eslint/space-infix-ops": "off",
990
+ "@typescript-eslint/type-annotation-spacing": "off",
991
+ "react/jsx-child-element-spacing": "off",
992
+ "react/jsx-closing-bracket-location": "off",
993
+ "react/jsx-closing-tag-location": "off",
994
+ "react/jsx-curly-newline": "off",
995
+ "react/jsx-curly-spacing": "off",
996
+ "react/jsx-equals-spacing": "off",
997
+ "react/jsx-first-prop-new-line": "off",
998
+ "react/jsx-indent": "off",
999
+ "react/jsx-indent-props": "off",
1000
+ "react/jsx-max-props-per-line": "off",
1001
+ "react/jsx-newline": "off",
1002
+ "react/jsx-one-expression-per-line": "off",
1003
+ "react/jsx-props-no-multi-spaces": "off",
1004
+ "react/jsx-tag-spacing": "off",
1005
+ "react/jsx-wrap-multilines": "off",
1006
+ "unicorn/empty-brace-spaces": "off",
1007
+ "unicorn/no-nested-ternary": "off",
1008
+ "unicorn/number-literal-case": "off",
1009
+ "@vitest/no-conditional-expect": "error",
1010
+ "@vitest/no-import-node-test": "error",
1011
+ "@vitest/no-interpolation-in-snapshots": "error",
1012
+ "@vitest/no-mocks-import": "error",
1013
+ "@vitest/no-standalone-expect": "error",
1014
+ "@vitest/no-unneeded-async-expect-function": "error",
1015
+ "@vitest/prefer-called-exactly-once-with": "error",
1016
+ "@vitest/require-local-test-context-for-concurrent-snapshots": "error",
1017
+ "@vitest/valid-describe-callback": "error",
1018
+ "@vitest/valid-expect-in-promise": "error",
720
1019
  "@vitest/expect-expect": "off",
721
1020
  "@vitest/no-commented-out-tests": "warn",
722
1021
  "@vitest/valid-title": "error",
723
1022
  "@vitest/no-disabled-tests": "warn",
724
1023
  "@vitest/no-focused-tests": "warn",
725
1024
  "@vitest/no-identical-title": "warn",
726
- "@vitest/valid-expect": "warn"
1025
+ "@vitest/valid-expect": "warn",
1026
+ "no-only-tests/no-only-tests": [
1027
+ "error",
1028
+ {
1029
+ "block": [
1030
+ "fixture"
1031
+ ],
1032
+ "focus": [
1033
+ "only"
1034
+ ]
1035
+ }
1036
+ ]
727
1037
  },
728
1038
  "overrides": [
729
1039
  {
@@ -755,6 +1065,13 @@
755
1065
  ],
756
1066
  "message": "Default import from React is not allowed. Use named imports instead."
757
1067
  },
1068
+ {
1069
+ "name": "react-dom",
1070
+ "importNames": [
1071
+ "default"
1072
+ ],
1073
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1074
+ },
758
1075
  {
759
1076
  "name": "@gooddata/sdk-ui-kit",
760
1077
  "importNames": [
@@ -1266,19 +1583,63 @@
1266
1583
  }
1267
1584
  },
1268
1585
  {
1269
- "parser": "@typescript-eslint/parser",
1270
1586
  "files": [
1271
- "**/*.ts",
1272
- "**/*.tsx"
1587
+ "**/eslint.config.ts",
1588
+ "**/eslint.config.js"
1273
1589
  ],
1274
- "extends": [
1275
- "plugin:@typescript-eslint/recommended-type-checked"
1590
+ "rules": {
1591
+ "no-restricted-exports": "off"
1592
+ }
1593
+ },
1594
+ {
1595
+ "files": [
1596
+ "**/*.ts",
1597
+ "**/*.tsx",
1598
+ "**/*.mts",
1599
+ "**/*.cts"
1276
1600
  ],
1277
- "parserOptions": {
1278
- "ecmaVersion": 2022,
1279
- "sourceType": "module"
1280
- },
1281
1601
  "rules": {
1602
+ "constructor-super": "off",
1603
+ "getter-return": "off",
1604
+ "no-class-assign": "off",
1605
+ "no-const-assign": "off",
1606
+ "no-dupe-args": "off",
1607
+ "no-dupe-class-members": "off",
1608
+ "no-dupe-keys": "off",
1609
+ "no-func-assign": "off",
1610
+ "no-import-assign": "off",
1611
+ "no-new-native-nonconstructor": "off",
1612
+ "no-new-symbol": "off",
1613
+ "no-obj-calls": "off",
1614
+ "no-redeclare": "off",
1615
+ "no-setter-return": "off",
1616
+ "no-this-before-super": "off",
1617
+ "no-undef": "off",
1618
+ "no-unreachable": "off",
1619
+ "no-unsafe-negation": "off",
1620
+ "no-var": "error",
1621
+ "no-with": "off",
1622
+ "prefer-const": "error",
1623
+ "prefer-rest-params": "error",
1624
+ "prefer-spread": "error",
1625
+ "no-array-constructor": "off",
1626
+ "no-unused-expressions": "off",
1627
+ "no-unused-vars": "off",
1628
+ "@typescript-eslint/no-array-constructor": "error",
1629
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1630
+ "@typescript-eslint/no-empty-object-type": "error",
1631
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1632
+ "@typescript-eslint/no-misused-new": "error",
1633
+ "@typescript-eslint/no-namespace": "error",
1634
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1635
+ "@typescript-eslint/no-require-imports": "error",
1636
+ "@typescript-eslint/no-this-alias": "error",
1637
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1638
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1639
+ "@typescript-eslint/no-unused-expressions": "error",
1640
+ "@typescript-eslint/prefer-as-const": "error",
1641
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1642
+ "@typescript-eslint/triple-slash-reference": "error",
1282
1643
  "@typescript-eslint/explicit-function-return-type": 0,
1283
1644
  "@typescript-eslint/no-use-before-define": 0,
1284
1645
  "@typescript-eslint/no-empty-function": 0,
@@ -1377,17 +1738,53 @@
1377
1738
  "fixStyle": "inline-type-imports"
1378
1739
  }
1379
1740
  ]
1741
+ },
1742
+ "parser": "@typescript-eslint/parser",
1743
+ "parserOptions": {
1744
+ "ecmaVersion": 2022,
1745
+ "sourceType": "module",
1746
+ "projectService": true
1380
1747
  }
1381
1748
  },
1382
1749
  {
1383
- "parser": "@typescript-eslint/parser",
1384
1750
  "files": [
1385
1751
  "**/*.ts",
1752
+ "**/*.cts",
1753
+ "**/*.mts",
1386
1754
  "**/*.tsx"
1387
1755
  ],
1388
- "extends": [
1389
- "plugin:import/typescript"
1390
- ]
1756
+ "settings": {
1757
+ "import-x/extensions": [
1758
+ ".ts",
1759
+ ".cts",
1760
+ ".mts",
1761
+ ".tsx",
1762
+ ".js",
1763
+ ".jsx",
1764
+ ".mjs",
1765
+ ".cjs"
1766
+ ],
1767
+ "import-x/external-module-folders": [
1768
+ "node_modules",
1769
+ "node_modules/@types"
1770
+ ],
1771
+ "import-x/parsers": {
1772
+ "@typescript-eslint/parser": [
1773
+ ".ts",
1774
+ ".cts",
1775
+ ".mts",
1776
+ ".tsx"
1777
+ ]
1778
+ },
1779
+ "import-x/resolver": {
1780
+ "typescript": {
1781
+ "alwaysTryTypes": true
1782
+ }
1783
+ }
1784
+ },
1785
+ "rules": {
1786
+ "import-x/named": "off"
1787
+ }
1391
1788
  },
1392
1789
  {
1393
1790
  "files": [
@@ -1414,62 +1811,29 @@
1414
1811
  "rules": {
1415
1812
  "sonarjs/no-identical-functions": "off"
1416
1813
  }
1417
- },
1418
- {
1419
- "parser": "@typescript-eslint/parser",
1420
- "files": [
1421
- "**/*.ts",
1422
- "**/*.tsx"
1423
- ],
1424
- "parserOptions": {
1425
- "ecmaVersion": 2022,
1426
- "sourceType": "module"
1427
- },
1428
- "plugins": [
1429
- "tsdoc",
1430
- "jsdoc"
1431
- ],
1432
- "settings": {
1433
- "jsdoc": {
1434
- "mode": "typescript"
1435
- }
1436
- },
1437
- "rules": {
1438
- "tsdoc/syntax": "error",
1439
- "jsdoc/require-param": [
1440
- "error",
1441
- {
1442
- "contexts": [
1443
- {
1444
- "context": "FunctionDeclaration",
1445
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1446
- },
1447
- {
1448
- "context": "FunctionExpression",
1449
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1450
- },
1451
- {
1452
- "context": "ArrowFunctionExpression",
1453
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1454
- },
1455
- {
1456
- "context": "MethodDefinition",
1457
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1458
- }
1459
- ]
1460
- }
1461
- ],
1462
- "jsdoc/require-param-type": "off"
1463
- }
1464
1814
  }
1465
1815
  ],
1466
- "settings": {},
1816
+ "settings": {
1817
+ "import-x/extensions": [
1818
+ ".js",
1819
+ ".jsx",
1820
+ ".mjs",
1821
+ ".cjs"
1822
+ ]
1823
+ },
1467
1824
  "env": {
1468
1825
  "node": true,
1469
1826
  "es2022": true
1470
1827
  },
1471
1828
  "ignorePatterns": [
1472
1829
  "**/dist/**/*.*",
1473
- "**/esm/**/*.*"
1830
+ "**/esm/**/*.*",
1831
+ "**/node_modules/**/*.*",
1832
+ "**/ci/results/**",
1833
+ "**/__version.ts",
1834
+ "**/cypress/results/**",
1835
+ "**/cypress/screenshots/**",
1836
+ "**/cypress/videos/**",
1837
+ "**/temp/**"
1474
1838
  ]
1475
1839
  }