@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/react.json CHANGED
@@ -2,21 +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
7
  "react",
9
8
  "react-hooks"
10
9
  ],
11
- "extends": [
12
- "eslint:recommended",
13
- "plugin:import/errors",
14
- "plugin:prettier/recommended",
15
- "plugin:regexp/recommended",
16
- "plugin:sonarjs/recommended-legacy",
17
- "plugin:react-hooks/recommended"
18
- ],
19
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",
20
69
  "no-console": [
21
70
  2,
22
71
  {
@@ -55,6 +104,13 @@
55
104
  ],
56
105
  "message": "Default import from React is not allowed. Use named imports instead."
57
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
+ },
58
114
  {
59
115
  "name": "@gooddata/sdk-ui-kit",
60
116
  "importNames": [
@@ -562,6 +618,10 @@
562
618
  {
563
619
  "selector": "MemberExpression[object.name='React']",
564
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."
565
625
  }
566
626
  ],
567
627
  "sort-imports": [
@@ -581,16 +641,7 @@
581
641
  }
582
642
  ],
583
643
  "no-extra-boolean-cast": "error",
584
- "no-unexpected-multiline": "off",
585
- "no-warning-comments": [
586
- "warn",
587
- {
588
- "terms": [
589
- "todo"
590
- ],
591
- "location": "start"
592
- }
593
- ],
644
+ "no-unexpected-multiline": 0,
594
645
  "header/header": [
595
646
  2,
596
647
  "line",
@@ -600,7 +651,15 @@
600
651
  }
601
652
  ],
602
653
  "no-barrel-files/no-barrel-files": "error",
603
- "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": [
604
663
  "error",
605
664
  {
606
665
  "pathGroups": [
@@ -635,20 +694,211 @@
635
694
  "newlines-between": "always"
636
695
  }
637
696
  ],
638
- "import/no-unassigned-import": "error",
639
- "no-only-tests/no-only-tests": [
640
- "error",
641
- {
642
- "block": [
643
- "fixture"
644
- ],
645
- "focus": [
646
- "only"
647
- ]
648
- }
649
- ],
650
- "regexp/prefer-d": "off",
651
- "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",
652
902
  "sonarjs/no-duplicate-string": "off",
653
903
  "sonarjs/cognitive-complexity": "warn",
654
904
  "sonarjs/todo-tag": "warn",
@@ -716,8 +966,46 @@
716
966
  "sonarjs/no-control-regex": "off",
717
967
  "no-caller": 2,
718
968
  "no-eval": 2,
719
- "no-delete-var": 2,
720
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",
721
1009
  "react/no-danger": "error",
722
1010
  "react/prop-types": "off",
723
1011
  "react/function-component-definition": [
@@ -774,6 +1062,13 @@
774
1062
  ],
775
1063
  "message": "Default import from React is not allowed. Use named imports instead."
776
1064
  },
1065
+ {
1066
+ "name": "react-dom",
1067
+ "importNames": [
1068
+ "default"
1069
+ ],
1070
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1071
+ },
777
1072
  {
778
1073
  "name": "@gooddata/sdk-ui-kit",
779
1074
  "importNames": [
@@ -1285,19 +1580,63 @@
1285
1580
  }
1286
1581
  },
1287
1582
  {
1288
- "parser": "@typescript-eslint/parser",
1289
1583
  "files": [
1290
- "**/*.ts",
1291
- "**/*.tsx"
1584
+ "**/eslint.config.ts",
1585
+ "**/eslint.config.js"
1292
1586
  ],
1293
- "extends": [
1294
- "plugin:@typescript-eslint/recommended-type-checked"
1587
+ "rules": {
1588
+ "no-restricted-exports": "off"
1589
+ }
1590
+ },
1591
+ {
1592
+ "files": [
1593
+ "**/*.ts",
1594
+ "**/*.tsx",
1595
+ "**/*.mts",
1596
+ "**/*.cts"
1295
1597
  ],
1296
- "parserOptions": {
1297
- "ecmaVersion": 2022,
1298
- "sourceType": "module"
1299
- },
1300
1598
  "rules": {
1599
+ "constructor-super": "off",
1600
+ "getter-return": "off",
1601
+ "no-class-assign": "off",
1602
+ "no-const-assign": "off",
1603
+ "no-dupe-args": "off",
1604
+ "no-dupe-class-members": "off",
1605
+ "no-dupe-keys": "off",
1606
+ "no-func-assign": "off",
1607
+ "no-import-assign": "off",
1608
+ "no-new-native-nonconstructor": "off",
1609
+ "no-new-symbol": "off",
1610
+ "no-obj-calls": "off",
1611
+ "no-redeclare": "off",
1612
+ "no-setter-return": "off",
1613
+ "no-this-before-super": "off",
1614
+ "no-undef": "off",
1615
+ "no-unreachable": "off",
1616
+ "no-unsafe-negation": "off",
1617
+ "no-var": "error",
1618
+ "no-with": "off",
1619
+ "prefer-const": "error",
1620
+ "prefer-rest-params": "error",
1621
+ "prefer-spread": "error",
1622
+ "no-array-constructor": "off",
1623
+ "no-unused-expressions": "off",
1624
+ "no-unused-vars": "off",
1625
+ "@typescript-eslint/no-array-constructor": "error",
1626
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1627
+ "@typescript-eslint/no-empty-object-type": "error",
1628
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1629
+ "@typescript-eslint/no-misused-new": "error",
1630
+ "@typescript-eslint/no-namespace": "error",
1631
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1632
+ "@typescript-eslint/no-require-imports": "error",
1633
+ "@typescript-eslint/no-this-alias": "error",
1634
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1635
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1636
+ "@typescript-eslint/no-unused-expressions": "error",
1637
+ "@typescript-eslint/prefer-as-const": "error",
1638
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1639
+ "@typescript-eslint/triple-slash-reference": "error",
1301
1640
  "@typescript-eslint/explicit-function-return-type": 0,
1302
1641
  "@typescript-eslint/no-use-before-define": 0,
1303
1642
  "@typescript-eslint/no-empty-function": 0,
@@ -1396,17 +1735,53 @@
1396
1735
  "fixStyle": "inline-type-imports"
1397
1736
  }
1398
1737
  ]
1738
+ },
1739
+ "parser": "@typescript-eslint/parser",
1740
+ "parserOptions": {
1741
+ "ecmaVersion": 2022,
1742
+ "sourceType": "module",
1743
+ "projectService": true
1399
1744
  }
1400
1745
  },
1401
1746
  {
1402
- "parser": "@typescript-eslint/parser",
1403
1747
  "files": [
1404
1748
  "**/*.ts",
1749
+ "**/*.cts",
1750
+ "**/*.mts",
1405
1751
  "**/*.tsx"
1406
1752
  ],
1407
- "extends": [
1408
- "plugin:import/typescript"
1409
- ]
1753
+ "settings": {
1754
+ "import-x/extensions": [
1755
+ ".ts",
1756
+ ".cts",
1757
+ ".mts",
1758
+ ".tsx",
1759
+ ".js",
1760
+ ".jsx",
1761
+ ".mjs",
1762
+ ".cjs"
1763
+ ],
1764
+ "import-x/external-module-folders": [
1765
+ "node_modules",
1766
+ "node_modules/@types"
1767
+ ],
1768
+ "import-x/parsers": {
1769
+ "@typescript-eslint/parser": [
1770
+ ".ts",
1771
+ ".cts",
1772
+ ".mts",
1773
+ ".tsx"
1774
+ ]
1775
+ },
1776
+ "import-x/resolver": {
1777
+ "typescript": {
1778
+ "alwaysTryTypes": true
1779
+ }
1780
+ }
1781
+ },
1782
+ "rules": {
1783
+ "import-x/named": "off"
1784
+ }
1410
1785
  },
1411
1786
  {
1412
1787
  "files": [
@@ -1433,56 +1808,15 @@
1433
1808
  "rules": {
1434
1809
  "sonarjs/no-identical-functions": "off"
1435
1810
  }
1436
- },
1437
- {
1438
- "parser": "@typescript-eslint/parser",
1439
- "files": [
1440
- "**/*.ts",
1441
- "**/*.tsx"
1442
- ],
1443
- "parserOptions": {
1444
- "ecmaVersion": 2022,
1445
- "sourceType": "module"
1446
- },
1447
- "plugins": [
1448
- "tsdoc",
1449
- "jsdoc"
1450
- ],
1451
- "settings": {
1452
- "jsdoc": {
1453
- "mode": "typescript"
1454
- }
1455
- },
1456
- "rules": {
1457
- "tsdoc/syntax": "error",
1458
- "jsdoc/require-param": [
1459
- "error",
1460
- {
1461
- "contexts": [
1462
- {
1463
- "context": "FunctionDeclaration",
1464
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1465
- },
1466
- {
1467
- "context": "FunctionExpression",
1468
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1469
- },
1470
- {
1471
- "context": "ArrowFunctionExpression",
1472
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1473
- },
1474
- {
1475
- "context": "MethodDefinition",
1476
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1477
- }
1478
- ]
1479
- }
1480
- ],
1481
- "jsdoc/require-param-type": "off"
1482
- }
1483
1811
  }
1484
1812
  ],
1485
1813
  "settings": {
1814
+ "import-x/extensions": [
1815
+ ".js",
1816
+ ".jsx",
1817
+ ".mjs",
1818
+ ".cjs"
1819
+ ],
1486
1820
  "react": {
1487
1821
  "version": "detect"
1488
1822
  }
@@ -1494,7 +1828,14 @@
1494
1828
  },
1495
1829
  "ignorePatterns": [
1496
1830
  "**/dist/**/*.*",
1497
- "**/esm/**/*.*"
1831
+ "**/esm/**/*.*",
1832
+ "**/node_modules/**/*.*",
1833
+ "**/ci/results/**",
1834
+ "**/__version.ts",
1835
+ "**/cypress/results/**",
1836
+ "**/cypress/screenshots/**",
1837
+ "**/cypress/videos/**",
1838
+ "**/temp/**"
1498
1839
  ],
1499
1840
  "parserOptions": {
1500
1841
  "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;