@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,20 +2,69 @@
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
8
  ],
10
- "extends": [
11
- "eslint:recommended",
12
- "plugin:import/errors",
13
- "plugin:prettier/recommended",
14
- "plugin:regexp/recommended",
15
- "plugin:sonarjs/recommended-legacy",
16
- "plugin:import-esm/recommended"
17
- ],
18
9
  "rules": {
10
+ "constructor-super": "error",
11
+ "for-direction": "error",
12
+ "getter-return": "error",
13
+ "no-async-promise-executor": "error",
14
+ "no-case-declarations": "error",
15
+ "no-class-assign": "error",
16
+ "no-compare-neg-zero": "error",
17
+ "no-cond-assign": "error",
18
+ "no-const-assign": "error",
19
+ "no-constant-binary-expression": "error",
20
+ "no-constant-condition": "error",
21
+ "no-control-regex": "error",
22
+ "no-debugger": "error",
23
+ "no-delete-var": 2,
24
+ "no-dupe-args": "error",
25
+ "no-dupe-class-members": "error",
26
+ "no-dupe-else-if": "error",
27
+ "no-dupe-keys": "error",
28
+ "no-duplicate-case": "error",
29
+ "no-empty": "error",
30
+ "no-empty-character-class": "error",
31
+ "no-empty-pattern": "error",
32
+ "no-empty-static-block": "error",
33
+ "no-ex-assign": "error",
34
+ "no-fallthrough": "error",
35
+ "no-func-assign": "error",
36
+ "no-global-assign": "error",
37
+ "no-import-assign": "error",
38
+ "no-invalid-regexp": "error",
39
+ "no-irregular-whitespace": "error",
40
+ "no-loss-of-precision": "error",
41
+ "no-misleading-character-class": "error",
42
+ "no-new-native-nonconstructor": "error",
43
+ "no-nonoctal-decimal-escape": "error",
44
+ "no-obj-calls": "error",
45
+ "no-octal": "error",
46
+ "no-prototype-builtins": "error",
47
+ "no-redeclare": "error",
48
+ "no-regex-spaces": "error",
49
+ "no-self-assign": "error",
50
+ "no-setter-return": "error",
51
+ "no-shadow-restricted-names": "error",
52
+ "no-sparse-arrays": "error",
53
+ "no-this-before-super": "error",
54
+ "no-undef": "error",
55
+ "no-unreachable": "error",
56
+ "no-unsafe-finally": "error",
57
+ "no-unsafe-negation": "error",
58
+ "no-unsafe-optional-chaining": "error",
59
+ "no-unused-labels": "error",
60
+ "no-unused-private-class-members": "error",
61
+ "no-unused-vars": "error",
62
+ "no-useless-backreference": "error",
63
+ "no-useless-catch": "error",
64
+ "no-with": "error",
65
+ "require-yield": "error",
66
+ "use-isnan": "error",
67
+ "valid-typeof": "error",
19
68
  "no-console": [
20
69
  2,
21
70
  {
@@ -54,6 +103,13 @@
54
103
  ],
55
104
  "message": "Default import from React is not allowed. Use named imports instead."
56
105
  },
106
+ {
107
+ "name": "react-dom",
108
+ "importNames": [
109
+ "default"
110
+ ],
111
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
112
+ },
57
113
  {
58
114
  "name": "@gooddata/sdk-ui-kit",
59
115
  "importNames": [
@@ -561,6 +617,10 @@
561
617
  {
562
618
  "selector": "MemberExpression[object.name='React']",
563
619
  "message": "Do not use `React.*`. Use named imports instead."
620
+ },
621
+ {
622
+ "selector": "MemberExpression[object.name='ReactDOM']",
623
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
564
624
  }
565
625
  ],
566
626
  "sort-imports": [
@@ -580,16 +640,7 @@
580
640
  }
581
641
  ],
582
642
  "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
- ],
643
+ "no-unexpected-multiline": 0,
593
644
  "header/header": [
594
645
  2,
595
646
  "line",
@@ -599,7 +650,15 @@
599
650
  }
600
651
  ],
601
652
  "no-barrel-files/no-barrel-files": "error",
602
- "import/order": [
653
+ "import-x/no-unresolved": "error",
654
+ "import-x/named": "error",
655
+ "import-x/namespace": "error",
656
+ "import-x/default": "error",
657
+ "import-x/export": "error",
658
+ "import-x/no-named-as-default": "warn",
659
+ "import-x/no-named-as-default-member": "warn",
660
+ "import-x/no-duplicates": "warn",
661
+ "import-x/order": [
603
662
  "error",
604
663
  {
605
664
  "pathGroups": [
@@ -634,20 +693,211 @@
634
693
  "newlines-between": "always"
635
694
  }
636
695
  ],
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",
696
+ "import-x/no-unassigned-import": "error",
697
+ "sonarjs/function-name": "off",
698
+ "sonarjs/max-lines": "off",
699
+ "sonarjs/no-tab": "off",
700
+ "sonarjs/variable-name": "off",
701
+ "sonarjs/comment-regex": "off",
702
+ "sonarjs/elseif-without-else": "off",
703
+ "sonarjs/no-fallthrough": "error",
704
+ "sonarjs/nested-control-flow": "off",
705
+ "sonarjs/too-many-break-or-continue-in-loop": "off",
706
+ "sonarjs/max-lines-per-function": "off",
707
+ "sonarjs/no-nested-incdec": "off",
708
+ "sonarjs/no-equals-in-for-termination": "error",
709
+ "sonarjs/no-extra-arguments": "error",
710
+ "sonarjs/no-collapsible-if": "off",
711
+ "sonarjs/expression-complexity": "off",
712
+ "sonarjs/no-redundant-parentheses": "off",
713
+ "sonarjs/no-labels": "error",
714
+ "sonarjs/no-redundant-boolean": "error",
715
+ "sonarjs/prefer-single-boolean-return": "error",
716
+ "sonarjs/unused-import": "error",
717
+ "sonarjs/useless-string-operation": "off",
718
+ "sonarjs/no-unused-function-argument": "off",
719
+ "sonarjs/no-case-label-in-switch": "error",
720
+ "sonarjs/no-parameter-reassignment": "error",
721
+ "sonarjs/prefer-while": "error",
722
+ "sonarjs/no-sonar-comments": "off",
723
+ "sonarjs/no-small-switch": "error",
724
+ "sonarjs/no-hardcoded-ip": "error",
725
+ "sonarjs/label-position": "error",
726
+ "sonarjs/file-header": "off",
727
+ "sonarjs/call-argument-line": "error",
728
+ "sonarjs/max-switch-cases": "error",
729
+ "sonarjs/prefer-immediate-return": "off",
730
+ "sonarjs/function-inside-loop": "error",
731
+ "sonarjs/no-variable-usage-before-declaration": "off",
732
+ "sonarjs/future-reserved-words": "error",
733
+ "sonarjs/array-constructor": "off",
734
+ "sonarjs/bitwise-operators": "error",
735
+ "sonarjs/no-function-declaration-in-block": "off",
736
+ "sonarjs/no-primitive-wrappers": "error",
737
+ "sonarjs/for-in": "off",
738
+ "sonarjs/cyclomatic-complexity": "off",
739
+ "sonarjs/no-identical-expressions": "error",
740
+ "sonarjs/no-nested-switch": "off",
741
+ "sonarjs/no-identical-conditions": "error",
742
+ "sonarjs/no-duplicated-branches": "error",
743
+ "sonarjs/misplaced-loop-counter": "error",
744
+ "sonarjs/sql-queries": "error",
745
+ "sonarjs/insecure-cookie": "error",
746
+ "sonarjs/no-useless-increment": "error",
747
+ "sonarjs/no-undefined-assignment": "off",
748
+ "sonarjs/no-wildcard-import": "off",
749
+ "sonarjs/for-loop-increment-sign": "error",
750
+ "sonarjs/cookies": "off",
751
+ "sonarjs/null-dereference": "error",
752
+ "sonarjs/updated-loop-counter": "error",
753
+ "sonarjs/block-scoped-var": "error",
754
+ "sonarjs/no-built-in-override": "off",
755
+ "sonarjs/prefer-object-literal": "off",
756
+ "sonarjs/no-gratuitous-expressions": "error",
757
+ "sonarjs/file-uploads": "error",
758
+ "sonarjs/file-permissions": "error",
759
+ "sonarjs/no-empty-character-class": "error",
760
+ "sonarjs/no-unenclosed-multiline-block": "error",
761
+ "sonarjs/index-of-compare-to-positive-number": "error",
762
+ "sonarjs/no-useless-catch": "error",
763
+ "sonarjs/xml-parser-xxe": "error",
764
+ "sonarjs/non-existent-operator": "error",
765
+ "sonarjs/web-sql-database": "off",
766
+ "sonarjs/no-array-delete": "error",
767
+ "sonarjs/no-incomplete-assertions": "error",
768
+ "sonarjs/no-global-this": "error",
769
+ "sonarjs/new-operator-misuse": "error",
770
+ "sonarjs/no-delete-var": "error",
771
+ "sonarjs/strings-comparison": "off",
772
+ "sonarjs/file-name-differ-from-class": "off",
773
+ "sonarjs/cookie-no-httponly": "error",
774
+ "sonarjs/no-incorrect-string-concat": "off",
775
+ "sonarjs/inverted-assertion-arguments": "error",
776
+ "sonarjs/shorthand-property-grouping": "off",
777
+ "sonarjs/updated-const-var": "error",
778
+ "sonarjs/arguments-usage": "off",
779
+ "sonarjs/destructuring-assignment-syntax": "off",
780
+ "sonarjs/arrow-function-convention": "off",
781
+ "sonarjs/class-prototype": "off",
782
+ "sonarjs/no-require-or-define": "off",
783
+ "sonarjs/no-associative-arrays": "error",
784
+ "sonarjs/comma-or-logical-or-case": "error",
785
+ "sonarjs/no-redundant-jump": "error",
786
+ "sonarjs/inconsistent-function-call": "error",
787
+ "sonarjs/no-use-of-empty-return-value": "error",
788
+ "sonarjs/enforce-trailing-comma": "off",
789
+ "sonarjs/operation-returning-nan": "off",
790
+ "sonarjs/values-not-convertible-to-numbers": "off",
791
+ "sonarjs/non-number-in-arithmetic-expression": "off",
792
+ "sonarjs/in-operator-type-error": "error",
793
+ "sonarjs/declarations-in-global-scope": "off",
794
+ "sonarjs/no-inconsistent-returns": "off",
795
+ "sonarjs/no-reference-error": "off",
796
+ "sonarjs/super-invocation": "error",
797
+ "sonarjs/no-all-duplicated-branches": "error",
798
+ "sonarjs/no-same-line-conditional": "error",
799
+ "sonarjs/conditional-indentation": "off",
800
+ "sonarjs/no-collection-size-mischeck": "error",
801
+ "sonarjs/no-unthrown-error": "error",
802
+ "sonarjs/no-unused-collection": "error",
803
+ "sonarjs/no-for-in-iterable": "off",
804
+ "sonarjs/no-element-overwrite": "error",
805
+ "sonarjs/no-identical-functions": "error",
806
+ "sonarjs/no-empty-collection": "error",
807
+ "sonarjs/no-redundant-assignments": "error",
808
+ "sonarjs/prefer-type-guard": "error",
809
+ "sonarjs/no-return-type-any": "off",
810
+ "sonarjs/no-implicit-dependencies": "off",
811
+ "sonarjs/weak-ssl": "error",
812
+ "sonarjs/no-weak-keys": "error",
813
+ "sonarjs/csrf": "error",
814
+ "sonarjs/production-debug": "error",
815
+ "sonarjs/no-in-misuse": "error",
816
+ "sonarjs/no-duplicate-in-composite": "error",
817
+ "sonarjs/max-union-size": "off",
818
+ "sonarjs/no-nested-template-literals": "error",
819
+ "sonarjs/regular-expr": "off",
820
+ "sonarjs/encryption": "off",
821
+ "sonarjs/hashing": "error",
822
+ "sonarjs/bool-param-default": "off",
823
+ "sonarjs/xpath": "off",
824
+ "sonarjs/sockets": "off",
825
+ "sonarjs/process-argv": "off",
826
+ "sonarjs/standard-input": "off",
827
+ "sonarjs/unverified-certificate": "error",
828
+ "sonarjs/cors": "error",
829
+ "sonarjs/disabled-auto-escaping": "error",
830
+ "sonarjs/no-table-as-layout": "error",
831
+ "sonarjs/table-header-reference": "error",
832
+ "sonarjs/object-alt-content": "error",
833
+ "sonarjs/publicly-writable-directories": "error",
834
+ "sonarjs/unverified-hostname": "error",
835
+ "sonarjs/encryption-secure-mode": "error",
836
+ "sonarjs/no-weak-cipher": "error",
837
+ "sonarjs/no-intrusive-permissions": "error",
838
+ "sonarjs/insecure-jwt-token": "error",
839
+ "sonarjs/x-powered-by": "error",
840
+ "sonarjs/hidden-files": "error",
841
+ "sonarjs/content-length": "error",
842
+ "sonarjs/disabled-resource-integrity": "error",
843
+ "sonarjs/content-security-policy": "error",
844
+ "sonarjs/no-mixed-content": "error",
845
+ "sonarjs/frame-ancestors": "error",
846
+ "sonarjs/no-mime-sniff": "error",
847
+ "sonarjs/no-referrer-policy": "error",
848
+ "sonarjs/strict-transport-security": "error",
849
+ "sonarjs/certificate-transparency": "off",
850
+ "sonarjs/dns-prefetching": "off",
851
+ "sonarjs/confidential-information-logging": "error",
852
+ "sonarjs/no-ip-forward": "error",
853
+ "sonarjs/no-invalid-regexp": "error",
854
+ "sonarjs/unused-named-groups": "error",
855
+ "sonarjs/no-same-argument-assert": "error",
856
+ "sonarjs/unicode-aware-regex": "off",
857
+ "sonarjs/no-misleading-character-class": "error",
858
+ "sonarjs/session-regeneration": "error",
859
+ "sonarjs/test-check-exception": "error",
860
+ "sonarjs/stable-tests": "error",
861
+ "sonarjs/no-empty-after-reluctant": "error",
862
+ "sonarjs/no-code-after-done": "error",
863
+ "sonarjs/disabled-timeout": "error",
864
+ "sonarjs/chai-determinate-assertion": "error",
865
+ "sonarjs/aws-s3-bucket-server-encryption": "off",
866
+ "sonarjs/aws-s3-bucket-insecure-http": "error",
867
+ "sonarjs/aws-s3-bucket-versioning": "error",
868
+ "sonarjs/aws-s3-bucket-granted-access": "error",
869
+ "sonarjs/no-angular-bypass-sanitization": "error",
870
+ "sonarjs/aws-iam-public-access": "error",
871
+ "sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
872
+ "sonarjs/aws-s3-bucket-public-access": "error",
873
+ "sonarjs/no-vue-bypass-sanitization": "off",
874
+ "sonarjs/aws-iam-all-privileges": "error",
875
+ "sonarjs/aws-rds-unencrypted-databases": "error",
876
+ "sonarjs/aws-iam-all-resources-accessible": "off",
877
+ "sonarjs/aws-opensearchservice-domain": "error",
878
+ "sonarjs/aws-iam-privilege-escalation": "error",
879
+ "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
880
+ "sonarjs/aws-restricted-ip-admin-access": "error",
881
+ "sonarjs/no-empty-alternatives": "error",
882
+ "sonarjs/no-regex-spaces": "error",
883
+ "sonarjs/aws-sns-unencrypted-topics": "error",
884
+ "sonarjs/existing-groups": "error",
885
+ "sonarjs/aws-ec2-rds-dms-public": "error",
886
+ "sonarjs/aws-sqs-unencrypted-queue": "error",
887
+ "sonarjs/no-empty-group": "error",
888
+ "sonarjs/aws-efs-unencrypted": "error",
889
+ "sonarjs/aws-apigateway-public-api": "error",
890
+ "sonarjs/stateful-regex": "error",
891
+ "sonarjs/single-char-in-character-classes": "error",
892
+ "sonarjs/no-exclusive-tests": "error",
893
+ "sonarjs/hardcoded-secret-signatures": "error",
894
+ "sonarjs/jsx-no-leaked-render": "error",
895
+ "sonarjs/no-hook-setter-in-body": "error",
896
+ "sonarjs/no-uniq-key": "error",
897
+ "sonarjs/no-internal-api-use": "error",
898
+ "sonarjs/no-literal-call": "error",
899
+ "sonarjs/review-blockchain-mnemonic": "error",
900
+ "sonarjs/dynamically-constructed-templates": "error",
651
901
  "sonarjs/no-duplicate-string": "off",
652
902
  "sonarjs/cognitive-complexity": "warn",
653
903
  "sonarjs/todo-tag": "warn",
@@ -715,8 +965,47 @@
715
965
  "sonarjs/no-control-regex": "off",
716
966
  "no-caller": 2,
717
967
  "no-eval": 2,
718
- "no-delete-var": 2,
719
- "no-octal-escape": 2
968
+ "no-octal-escape": 2,
969
+ "curly": 0,
970
+ "@typescript-eslint/lines-around-comment": 0,
971
+ "@typescript-eslint/quotes": 0,
972
+ "unicorn/template-indent": 0,
973
+ "@typescript-eslint/block-spacing": "off",
974
+ "@typescript-eslint/brace-style": "off",
975
+ "@typescript-eslint/comma-dangle": "off",
976
+ "@typescript-eslint/comma-spacing": "off",
977
+ "@typescript-eslint/func-call-spacing": "off",
978
+ "@typescript-eslint/indent": "off",
979
+ "@typescript-eslint/key-spacing": "off",
980
+ "@typescript-eslint/keyword-spacing": "off",
981
+ "@typescript-eslint/member-delimiter-style": "off",
982
+ "@typescript-eslint/no-extra-parens": "off",
983
+ "@typescript-eslint/no-extra-semi": "off",
984
+ "@typescript-eslint/object-curly-spacing": "off",
985
+ "@typescript-eslint/semi": "off",
986
+ "@typescript-eslint/space-before-blocks": "off",
987
+ "@typescript-eslint/space-before-function-paren": "off",
988
+ "@typescript-eslint/space-infix-ops": "off",
989
+ "@typescript-eslint/type-annotation-spacing": "off",
990
+ "react/jsx-child-element-spacing": "off",
991
+ "react/jsx-closing-bracket-location": "off",
992
+ "react/jsx-closing-tag-location": "off",
993
+ "react/jsx-curly-newline": "off",
994
+ "react/jsx-curly-spacing": "off",
995
+ "react/jsx-equals-spacing": "off",
996
+ "react/jsx-first-prop-new-line": "off",
997
+ "react/jsx-indent": "off",
998
+ "react/jsx-indent-props": "off",
999
+ "react/jsx-max-props-per-line": "off",
1000
+ "react/jsx-newline": "off",
1001
+ "react/jsx-one-expression-per-line": "off",
1002
+ "react/jsx-props-no-multi-spaces": "off",
1003
+ "react/jsx-tag-spacing": "off",
1004
+ "react/jsx-wrap-multilines": "off",
1005
+ "unicorn/empty-brace-spaces": "off",
1006
+ "unicorn/no-nested-ternary": "off",
1007
+ "unicorn/number-literal-case": "off",
1008
+ "import-esm/explicit-extension": "error"
720
1009
  },
721
1010
  "overrides": [
722
1011
  {
@@ -748,6 +1037,13 @@
748
1037
  ],
749
1038
  "message": "Default import from React is not allowed. Use named imports instead."
750
1039
  },
1040
+ {
1041
+ "name": "react-dom",
1042
+ "importNames": [
1043
+ "default"
1044
+ ],
1045
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
1046
+ },
751
1047
  {
752
1048
  "name": "@gooddata/sdk-ui-kit",
753
1049
  "importNames": [
@@ -1259,19 +1555,63 @@
1259
1555
  }
1260
1556
  },
1261
1557
  {
1262
- "parser": "@typescript-eslint/parser",
1263
1558
  "files": [
1264
- "**/*.ts",
1265
- "**/*.tsx"
1559
+ "**/eslint.config.ts",
1560
+ "**/eslint.config.js"
1266
1561
  ],
1267
- "extends": [
1268
- "plugin:@typescript-eslint/recommended-type-checked"
1562
+ "rules": {
1563
+ "no-restricted-exports": "off"
1564
+ }
1565
+ },
1566
+ {
1567
+ "files": [
1568
+ "**/*.ts",
1569
+ "**/*.tsx",
1570
+ "**/*.mts",
1571
+ "**/*.cts"
1269
1572
  ],
1270
- "parserOptions": {
1271
- "ecmaVersion": 2022,
1272
- "sourceType": "module"
1273
- },
1274
1573
  "rules": {
1574
+ "constructor-super": "off",
1575
+ "getter-return": "off",
1576
+ "no-class-assign": "off",
1577
+ "no-const-assign": "off",
1578
+ "no-dupe-args": "off",
1579
+ "no-dupe-class-members": "off",
1580
+ "no-dupe-keys": "off",
1581
+ "no-func-assign": "off",
1582
+ "no-import-assign": "off",
1583
+ "no-new-native-nonconstructor": "off",
1584
+ "no-new-symbol": "off",
1585
+ "no-obj-calls": "off",
1586
+ "no-redeclare": "off",
1587
+ "no-setter-return": "off",
1588
+ "no-this-before-super": "off",
1589
+ "no-undef": "off",
1590
+ "no-unreachable": "off",
1591
+ "no-unsafe-negation": "off",
1592
+ "no-var": "error",
1593
+ "no-with": "off",
1594
+ "prefer-const": "error",
1595
+ "prefer-rest-params": "error",
1596
+ "prefer-spread": "error",
1597
+ "no-array-constructor": "off",
1598
+ "no-unused-expressions": "off",
1599
+ "no-unused-vars": "off",
1600
+ "@typescript-eslint/no-array-constructor": "error",
1601
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1602
+ "@typescript-eslint/no-empty-object-type": "error",
1603
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1604
+ "@typescript-eslint/no-misused-new": "error",
1605
+ "@typescript-eslint/no-namespace": "error",
1606
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1607
+ "@typescript-eslint/no-require-imports": "error",
1608
+ "@typescript-eslint/no-this-alias": "error",
1609
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1610
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1611
+ "@typescript-eslint/no-unused-expressions": "error",
1612
+ "@typescript-eslint/prefer-as-const": "error",
1613
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1614
+ "@typescript-eslint/triple-slash-reference": "error",
1275
1615
  "@typescript-eslint/explicit-function-return-type": 0,
1276
1616
  "@typescript-eslint/no-use-before-define": 0,
1277
1617
  "@typescript-eslint/no-empty-function": 0,
@@ -1370,17 +1710,53 @@
1370
1710
  "fixStyle": "inline-type-imports"
1371
1711
  }
1372
1712
  ]
1713
+ },
1714
+ "parser": "@typescript-eslint/parser",
1715
+ "parserOptions": {
1716
+ "ecmaVersion": 2022,
1717
+ "sourceType": "module",
1718
+ "projectService": true
1373
1719
  }
1374
1720
  },
1375
1721
  {
1376
- "parser": "@typescript-eslint/parser",
1377
1722
  "files": [
1378
1723
  "**/*.ts",
1724
+ "**/*.cts",
1725
+ "**/*.mts",
1379
1726
  "**/*.tsx"
1380
1727
  ],
1381
- "extends": [
1382
- "plugin:import/typescript"
1383
- ]
1728
+ "settings": {
1729
+ "import-x/extensions": [
1730
+ ".ts",
1731
+ ".cts",
1732
+ ".mts",
1733
+ ".tsx",
1734
+ ".js",
1735
+ ".jsx",
1736
+ ".mjs",
1737
+ ".cjs"
1738
+ ],
1739
+ "import-x/external-module-folders": [
1740
+ "node_modules",
1741
+ "node_modules/@types"
1742
+ ],
1743
+ "import-x/parsers": {
1744
+ "@typescript-eslint/parser": [
1745
+ ".ts",
1746
+ ".cts",
1747
+ ".mts",
1748
+ ".tsx"
1749
+ ]
1750
+ },
1751
+ "import-x/resolver": {
1752
+ "typescript": {
1753
+ "alwaysTryTypes": true
1754
+ }
1755
+ }
1756
+ },
1757
+ "rules": {
1758
+ "import-x/named": "off"
1759
+ }
1384
1760
  },
1385
1761
  {
1386
1762
  "files": [
@@ -1407,56 +1783,16 @@
1407
1783
  "rules": {
1408
1784
  "sonarjs/no-identical-functions": "off"
1409
1785
  }
1410
- },
1411
- {
1412
- "parser": "@typescript-eslint/parser",
1413
- "files": [
1414
- "**/*.ts",
1415
- "**/*.tsx"
1416
- ],
1417
- "parserOptions": {
1418
- "ecmaVersion": 2022,
1419
- "sourceType": "module"
1420
- },
1421
- "plugins": [
1422
- "tsdoc",
1423
- "jsdoc"
1424
- ],
1425
- "settings": {
1426
- "jsdoc": {
1427
- "mode": "typescript"
1428
- }
1429
- },
1430
- "rules": {
1431
- "tsdoc/syntax": "error",
1432
- "jsdoc/require-param": [
1433
- "error",
1434
- {
1435
- "contexts": [
1436
- {
1437
- "context": "FunctionDeclaration",
1438
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1439
- },
1440
- {
1441
- "context": "FunctionExpression",
1442
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1443
- },
1444
- {
1445
- "context": "ArrowFunctionExpression",
1446
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1447
- },
1448
- {
1449
- "context": "MethodDefinition",
1450
- "comment": "JsdocBlock > JsdocTag[tag=\"param\"]"
1451
- }
1452
- ]
1453
- }
1454
- ],
1455
- "jsdoc/require-param-type": "off"
1456
- }
1457
1786
  }
1458
1787
  ],
1459
- "settings": {},
1788
+ "settings": {
1789
+ "import-x/extensions": [
1790
+ ".js",
1791
+ ".jsx",
1792
+ ".mjs",
1793
+ ".cjs"
1794
+ ]
1795
+ },
1460
1796
  "env": {
1461
1797
  "node": true,
1462
1798
  "es2022": true,
@@ -1464,7 +1800,14 @@
1464
1800
  },
1465
1801
  "ignorePatterns": [
1466
1802
  "**/dist/**/*.*",
1467
- "**/esm/**/*.*"
1803
+ "**/esm/**/*.*",
1804
+ "**/node_modules/**/*.*",
1805
+ "**/ci/results/**",
1806
+ "**/__version.ts",
1807
+ "**/cypress/results/**",
1808
+ "**/cypress/screenshots/**",
1809
+ "**/cypress/videos/**",
1810
+ "**/temp/**"
1468
1811
  ],
1469
1812
  "parserOptions": {
1470
1813
  "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;