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