@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,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
  "react",
9
8
  "react-hooks",
10
9
  "import-esm"
11
10
  ],
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:import-esm/recommended"
20
- ],
21
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",
22
70
  "no-console": [
23
71
  2,
24
72
  {
@@ -57,6 +105,13 @@
57
105
  ],
58
106
  "message": "Default import from React is not allowed. Use named imports instead."
59
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
+ },
60
115
  {
61
116
  "name": "@gooddata/sdk-ui-kit",
62
117
  "importNames": [
@@ -564,6 +619,10 @@
564
619
  {
565
620
  "selector": "MemberExpression[object.name='React']",
566
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."
567
626
  }
568
627
  ],
569
628
  "sort-imports": [
@@ -583,16 +642,7 @@
583
642
  }
584
643
  ],
585
644
  "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
- ],
645
+ "no-unexpected-multiline": 0,
596
646
  "header/header": [
597
647
  2,
598
648
  "line",
@@ -602,7 +652,15 @@
602
652
  }
603
653
  ],
604
654
  "no-barrel-files/no-barrel-files": "error",
605
- "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": [
606
664
  "error",
607
665
  {
608
666
  "pathGroups": [
@@ -637,20 +695,211 @@
637
695
  "newlines-between": "always"
638
696
  }
639
697
  ],
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",
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",
654
903
  "sonarjs/no-duplicate-string": "off",
655
904
  "sonarjs/cognitive-complexity": "warn",
656
905
  "sonarjs/todo-tag": "warn",
@@ -718,8 +967,46 @@
718
967
  "sonarjs/no-control-regex": "off",
719
968
  "no-caller": 2,
720
969
  "no-eval": 2,
721
- "no-delete-var": 2,
722
970
  "no-octal-escape": 2,
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",
723
1010
  "react/no-danger": "error",
724
1011
  "react/prop-types": "off",
725
1012
  "react/function-component-definition": [
@@ -744,7 +1031,8 @@
744
1031
  ],
745
1032
  "react/react-in-jsx-scope": "off",
746
1033
  "react-hooks/rules-of-hooks": "error",
747
- "react-hooks/exhaustive-deps": "error"
1034
+ "react-hooks/exhaustive-deps": "error",
1035
+ "import-esm/explicit-extension": "error"
748
1036
  },
749
1037
  "overrides": [
750
1038
  {
@@ -776,6 +1064,13 @@
776
1064
  ],
777
1065
  "message": "Default import from React is not allowed. Use named imports instead."
778
1066
  },
1067
+ {
1068
+ "name": "react-dom",
1069
+ "importNames": [
1070
+ "default"
1071
+ ],
1072
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1073
+ },
779
1074
  {
780
1075
  "name": "@gooddata/sdk-ui-kit",
781
1076
  "importNames": [
@@ -1287,19 +1582,63 @@
1287
1582
  }
1288
1583
  },
1289
1584
  {
1290
- "parser": "@typescript-eslint/parser",
1291
1585
  "files": [
1292
- "**/*.ts",
1293
- "**/*.tsx"
1586
+ "**/eslint.config.ts",
1587
+ "**/eslint.config.js"
1294
1588
  ],
1295
- "extends": [
1296
- "plugin:@typescript-eslint/recommended-type-checked"
1589
+ "rules": {
1590
+ "no-restricted-exports": "off"
1591
+ }
1592
+ },
1593
+ {
1594
+ "files": [
1595
+ "**/*.ts",
1596
+ "**/*.tsx",
1597
+ "**/*.mts",
1598
+ "**/*.cts"
1297
1599
  ],
1298
- "parserOptions": {
1299
- "ecmaVersion": 2022,
1300
- "sourceType": "module"
1301
- },
1302
1600
  "rules": {
1601
+ "constructor-super": "off",
1602
+ "getter-return": "off",
1603
+ "no-class-assign": "off",
1604
+ "no-const-assign": "off",
1605
+ "no-dupe-args": "off",
1606
+ "no-dupe-class-members": "off",
1607
+ "no-dupe-keys": "off",
1608
+ "no-func-assign": "off",
1609
+ "no-import-assign": "off",
1610
+ "no-new-native-nonconstructor": "off",
1611
+ "no-new-symbol": "off",
1612
+ "no-obj-calls": "off",
1613
+ "no-redeclare": "off",
1614
+ "no-setter-return": "off",
1615
+ "no-this-before-super": "off",
1616
+ "no-undef": "off",
1617
+ "no-unreachable": "off",
1618
+ "no-unsafe-negation": "off",
1619
+ "no-var": "error",
1620
+ "no-with": "off",
1621
+ "prefer-const": "error",
1622
+ "prefer-rest-params": "error",
1623
+ "prefer-spread": "error",
1624
+ "no-array-constructor": "off",
1625
+ "no-unused-expressions": "off",
1626
+ "no-unused-vars": "off",
1627
+ "@typescript-eslint/no-array-constructor": "error",
1628
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1629
+ "@typescript-eslint/no-empty-object-type": "error",
1630
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1631
+ "@typescript-eslint/no-misused-new": "error",
1632
+ "@typescript-eslint/no-namespace": "error",
1633
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1634
+ "@typescript-eslint/no-require-imports": "error",
1635
+ "@typescript-eslint/no-this-alias": "error",
1636
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1637
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1638
+ "@typescript-eslint/no-unused-expressions": "error",
1639
+ "@typescript-eslint/prefer-as-const": "error",
1640
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1641
+ "@typescript-eslint/triple-slash-reference": "error",
1303
1642
  "@typescript-eslint/explicit-function-return-type": 0,
1304
1643
  "@typescript-eslint/no-use-before-define": 0,
1305
1644
  "@typescript-eslint/no-empty-function": 0,
@@ -1398,17 +1737,53 @@
1398
1737
  "fixStyle": "inline-type-imports"
1399
1738
  }
1400
1739
  ]
1740
+ },
1741
+ "parser": "@typescript-eslint/parser",
1742
+ "parserOptions": {
1743
+ "ecmaVersion": 2022,
1744
+ "sourceType": "module",
1745
+ "projectService": true
1401
1746
  }
1402
1747
  },
1403
1748
  {
1404
- "parser": "@typescript-eslint/parser",
1405
1749
  "files": [
1406
1750
  "**/*.ts",
1751
+ "**/*.cts",
1752
+ "**/*.mts",
1407
1753
  "**/*.tsx"
1408
1754
  ],
1409
- "extends": [
1410
- "plugin:import/typescript"
1411
- ]
1755
+ "settings": {
1756
+ "import-x/extensions": [
1757
+ ".ts",
1758
+ ".cts",
1759
+ ".mts",
1760
+ ".tsx",
1761
+ ".js",
1762
+ ".jsx",
1763
+ ".mjs",
1764
+ ".cjs"
1765
+ ],
1766
+ "import-x/external-module-folders": [
1767
+ "node_modules",
1768
+ "node_modules/@types"
1769
+ ],
1770
+ "import-x/parsers": {
1771
+ "@typescript-eslint/parser": [
1772
+ ".ts",
1773
+ ".cts",
1774
+ ".mts",
1775
+ ".tsx"
1776
+ ]
1777
+ },
1778
+ "import-x/resolver": {
1779
+ "typescript": {
1780
+ "alwaysTryTypes": true
1781
+ }
1782
+ }
1783
+ },
1784
+ "rules": {
1785
+ "import-x/named": "off"
1786
+ }
1412
1787
  },
1413
1788
  {
1414
1789
  "files": [
@@ -1435,56 +1810,15 @@
1435
1810
  "rules": {
1436
1811
  "sonarjs/no-identical-functions": "off"
1437
1812
  }
1438
- },
1439
- {
1440
- "parser": "@typescript-eslint/parser",
1441
- "files": [
1442
- "**/*.ts",
1443
- "**/*.tsx"
1444
- ],
1445
- "parserOptions": {
1446
- "ecmaVersion": 2022,
1447
- "sourceType": "module"
1448
- },
1449
- "plugins": [
1450
- "tsdoc",
1451
- "jsdoc"
1452
- ],
1453
- "settings": {
1454
- "jsdoc": {
1455
- "mode": "typescript"
1456
- }
1457
- },
1458
- "rules": {
1459
- "tsdoc/syntax": "error",
1460
- "jsdoc/require-param": [
1461
- "error",
1462
- {
1463
- "contexts": [
1464
- {
1465
- "context": "FunctionDeclaration",
1466
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1467
- },
1468
- {
1469
- "context": "FunctionExpression",
1470
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1471
- },
1472
- {
1473
- "context": "ArrowFunctionExpression",
1474
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1475
- },
1476
- {
1477
- "context": "MethodDefinition",
1478
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1479
- }
1480
- ]
1481
- }
1482
- ],
1483
- "jsdoc/require-param-type": "off"
1484
- }
1485
1813
  }
1486
1814
  ],
1487
1815
  "settings": {
1816
+ "import-x/extensions": [
1817
+ ".js",
1818
+ ".jsx",
1819
+ ".mjs",
1820
+ ".cjs"
1821
+ ],
1488
1822
  "react": {
1489
1823
  "version": "detect"
1490
1824
  }
@@ -1496,7 +1830,14 @@
1496
1830
  },
1497
1831
  "ignorePatterns": [
1498
1832
  "**/dist/**/*.*",
1499
- "**/esm/**/*.*"
1833
+ "**/esm/**/*.*",
1834
+ "**/node_modules/**/*.*",
1835
+ "**/ci/results/**",
1836
+ "**/__version.ts",
1837
+ "**/cypress/results/**",
1838
+ "**/cypress/screenshots/**",
1839
+ "**/cypress/videos/**",
1840
+ "**/temp/**"
1500
1841
  ],
1501
1842
  "parserOptions": {
1502
1843
  "ecmaVersion": 2022,
@@ -0,0 +1,12 @@
1
+ export interface FlatConfig {
2
+ files?: string[];
3
+ ignores?: string[];
4
+ languageOptions?: Record<string, unknown>;
5
+ linterOptions?: Record<string, unknown>;
6
+ processor?: unknown;
7
+ plugins?: Record<string, unknown>;
8
+ rules?: Record<string, unknown>;
9
+ settings?: Record<string, unknown>;
10
+ }
11
+ declare const config: FlatConfig[];
12
+ export default config;