@gooddata/eslint-config 11.19.0-alpha.3 → 11.19.0-alpha.5

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 (60) hide show
  1. package/LICENSE +7 -0
  2. package/PACKAGES_V8.md +23 -26
  3. package/PACKAGES_V9.md +24 -29
  4. package/README.md +22 -0
  5. package/dist/base.js +62 -9
  6. package/dist/base.json +59 -11
  7. package/dist/browser-esm.js +37 -351
  8. package/dist/browser-esm.json +60 -13
  9. package/dist/browser.js +23 -337
  10. package/dist/browser.json +60 -13
  11. package/dist/esm-react-cypress.js +62 -376
  12. package/dist/esm-react-cypress.json +59 -12
  13. package/dist/esm-react-vitest-storybook.js +62 -376
  14. package/dist/esm-react-vitest-storybook.json +59 -12
  15. package/dist/esm-react-vitest.js +62 -376
  16. package/dist/esm-react-vitest.json +59 -12
  17. package/dist/esm-react.js +62 -376
  18. package/dist/esm-react.json +59 -12
  19. package/dist/esm-vitest.js +56 -370
  20. package/dist/esm-vitest.json +59 -12
  21. package/dist/esm.js +32 -346
  22. package/dist/esm.json +60 -13
  23. package/dist/react-cypress.js +62 -376
  24. package/dist/react-cypress.json +59 -12
  25. package/dist/react-vitest.js +62 -376
  26. package/dist/react-vitest.json +59 -12
  27. package/dist/react.js +62 -376
  28. package/dist/react.json +59 -12
  29. package/dist/vitest.js +36 -716
  30. package/dist/vitest.json +59 -13
  31. package/package.json +15 -59
  32. package/dist/oxfmt-browser-esm.d.ts +0 -12
  33. package/dist/oxfmt-browser-esm.js +0 -1859
  34. package/dist/oxfmt-browser.d.ts +0 -12
  35. package/dist/oxfmt-browser.js +0 -1844
  36. package/dist/oxfmt-esm-react-cypress.d.ts +0 -12
  37. package/dist/oxfmt-esm-react-cypress.js +0 -1942
  38. package/dist/oxfmt-esm-react-vitest-storybook.d.ts +0 -12
  39. package/dist/oxfmt-esm-react-vitest-storybook.js +0 -1964
  40. package/dist/oxfmt-esm-react-vitest.d.ts +0 -12
  41. package/dist/oxfmt-esm-react-vitest.js +0 -1930
  42. package/dist/oxfmt-esm-react.d.ts +0 -12
  43. package/dist/oxfmt-esm-react.js +0 -1905
  44. package/dist/oxfmt-esm-vitest.d.ts +0 -12
  45. package/dist/oxfmt-esm-vitest.js +0 -1879
  46. package/dist/oxfmt-esm.d.ts +0 -12
  47. package/dist/oxfmt-esm.js +0 -1854
  48. package/dist/oxfmt-react-cypress.d.ts +0 -12
  49. package/dist/oxfmt-react-cypress.js +0 -1933
  50. package/dist/oxfmt-react-vitest.d.ts +0 -12
  51. package/dist/oxfmt-react-vitest.js +0 -1921
  52. package/dist/oxfmt-react.d.ts +0 -12
  53. package/dist/oxfmt-react.js +0 -1896
  54. package/dist/oxfmt-vitest.d.ts +0 -12
  55. package/dist/oxfmt-vitest.js +0 -2231
  56. package/dist/oxfmt.d.ts +0 -12
  57. package/dist/oxfmt.js +0 -1839
  58. package/dist/prettier.d.ts +0 -12
  59. package/dist/prettier.js +0 -2197
  60. package/dist/prettier.json +0 -1451
@@ -14,7 +14,6 @@ import plugin0010 from "eslint-plugin-react-hooks";
14
14
  import plugin0011 from "eslint-plugin-import-esm";
15
15
  import plugin0012 from "eslint-plugin-cypress";
16
16
  import plugin0013 from "eslint-plugin-chai-friendly";
17
- import plugin0014 from "eslint-plugin-prettier";
18
17
 
19
18
  export default [
20
19
  {
@@ -123,6 +122,13 @@ export default [
123
122
  ],
124
123
  message: "Default import from React is not allowed. Use named imports instead.",
125
124
  },
125
+ {
126
+ name: "react-dom",
127
+ importNames: [
128
+ "default",
129
+ ],
130
+ message: "Default import from React DOM is not allowed. Use named imports instead.",
131
+ },
126
132
  {
127
133
  name: "@gooddata/sdk-ui-kit",
128
134
  importNames: [
@@ -631,6 +637,10 @@ export default [
631
637
  selector: "MemberExpression[object.name='React']",
632
638
  message: "Do not use `React.*`. Use named imports instead.",
633
639
  },
640
+ {
641
+ selector: "MemberExpression[object.name='ReactDOM']",
642
+ message: "Do not use `ReactDOM.*`. Use named imports instead.",
643
+ },
634
644
  ],
635
645
  "sort-imports": [
636
646
  "error",
@@ -647,15 +657,6 @@ export default [
647
657
  defaultAssignment: false,
648
658
  },
649
659
  ],
650
- "no-warning-comments": [
651
- "warn",
652
- {
653
- terms: [
654
- "todo",
655
- ],
656
- location: "start",
657
- },
658
- ],
659
660
  },
660
661
  },
661
662
  {
@@ -687,6 +688,13 @@ export default [
687
688
  ],
688
689
  message: "Default import from React is not allowed. Use named imports instead.",
689
690
  },
691
+ {
692
+ name: "react-dom",
693
+ importNames: [
694
+ "default",
695
+ ],
696
+ message: "Default import from React DOM is not allowed. Use named imports instead.",
697
+ },
690
698
  {
691
699
  name: "@gooddata/sdk-ui-kit",
692
700
  importNames: [
@@ -1833,6 +1841,50 @@ export default [
1833
1841
  "**/temp/**",
1834
1842
  ],
1835
1843
  },
1844
+ {
1845
+ rules: {
1846
+ curly: 0,
1847
+ "no-unexpected-multiline": 0,
1848
+ "@typescript-eslint/lines-around-comment": 0,
1849
+ "@typescript-eslint/quotes": 0,
1850
+ "unicorn/template-indent": 0,
1851
+ "@typescript-eslint/block-spacing": "off",
1852
+ "@typescript-eslint/brace-style": "off",
1853
+ "@typescript-eslint/comma-dangle": "off",
1854
+ "@typescript-eslint/comma-spacing": "off",
1855
+ "@typescript-eslint/func-call-spacing": "off",
1856
+ "@typescript-eslint/indent": "off",
1857
+ "@typescript-eslint/key-spacing": "off",
1858
+ "@typescript-eslint/keyword-spacing": "off",
1859
+ "@typescript-eslint/member-delimiter-style": "off",
1860
+ "@typescript-eslint/no-extra-parens": "off",
1861
+ "@typescript-eslint/no-extra-semi": "off",
1862
+ "@typescript-eslint/object-curly-spacing": "off",
1863
+ "@typescript-eslint/semi": "off",
1864
+ "@typescript-eslint/space-before-blocks": "off",
1865
+ "@typescript-eslint/space-before-function-paren": "off",
1866
+ "@typescript-eslint/space-infix-ops": "off",
1867
+ "@typescript-eslint/type-annotation-spacing": "off",
1868
+ "react/jsx-child-element-spacing": "off",
1869
+ "react/jsx-closing-bracket-location": "off",
1870
+ "react/jsx-closing-tag-location": "off",
1871
+ "react/jsx-curly-newline": "off",
1872
+ "react/jsx-curly-spacing": "off",
1873
+ "react/jsx-equals-spacing": "off",
1874
+ "react/jsx-first-prop-new-line": "off",
1875
+ "react/jsx-indent": "off",
1876
+ "react/jsx-indent-props": "off",
1877
+ "react/jsx-max-props-per-line": "off",
1878
+ "react/jsx-newline": "off",
1879
+ "react/jsx-one-expression-per-line": "off",
1880
+ "react/jsx-props-no-multi-spaces": "off",
1881
+ "react/jsx-tag-spacing": "off",
1882
+ "react/jsx-wrap-multilines": "off",
1883
+ "unicorn/empty-brace-spaces": "off",
1884
+ "unicorn/no-nested-ternary": "off",
1885
+ "unicorn/number-literal-case": "off",
1886
+ },
1887
+ },
1836
1888
  {
1837
1889
  languageOptions: {
1838
1890
  globals: { ...globals.browser },
@@ -1931,370 +1983,4 @@ export default [
1931
1983
  "@typescript-eslint/no-unused-expressions": "off",
1932
1984
  },
1933
1985
  },
1934
- {
1935
- plugins: {
1936
- prettier: plugin0014,
1937
- },
1938
- rules: {
1939
- curly: 0,
1940
- "no-unexpected-multiline": 0,
1941
- "@stylistic/lines-around-comment": 0,
1942
- "@stylistic/max-len": 0,
1943
- "@stylistic/no-confusing-arrow": 0,
1944
- "@stylistic/no-mixed-operators": 0,
1945
- "@stylistic/no-tabs": 0,
1946
- "@stylistic/quotes": 0,
1947
- "@stylistic/js/lines-around-comment": 0,
1948
- "@stylistic/js/max-len": 0,
1949
- "@stylistic/js/no-confusing-arrow": 0,
1950
- "@stylistic/js/no-mixed-operators": 0,
1951
- "@stylistic/js/no-tabs": 0,
1952
- "@stylistic/js/quotes": 0,
1953
- "@stylistic/ts/lines-around-comment": 0,
1954
- "@stylistic/ts/quotes": 0,
1955
- "@typescript-eslint/lines-around-comment": 0,
1956
- "@typescript-eslint/quotes": 0,
1957
- "babel/quotes": 0,
1958
- "unicorn/template-indent": 0,
1959
- "vue/html-self-closing": 0,
1960
- "vue/max-len": 0,
1961
- "@babel/object-curly-spacing": "off",
1962
- "@babel/semi": "off",
1963
- "@stylistic/array-bracket-newline": "off",
1964
- "@stylistic/array-bracket-spacing": "off",
1965
- "@stylistic/array-element-newline": "off",
1966
- "@stylistic/arrow-parens": "off",
1967
- "@stylistic/arrow-spacing": "off",
1968
- "@stylistic/block-spacing": "off",
1969
- "@stylistic/brace-style": "off",
1970
- "@stylistic/comma-dangle": "off",
1971
- "@stylistic/comma-spacing": "off",
1972
- "@stylistic/comma-style": "off",
1973
- "@stylistic/computed-property-spacing": "off",
1974
- "@stylistic/dot-location": "off",
1975
- "@stylistic/eol-last": "off",
1976
- "@stylistic/func-call-spacing": "off",
1977
- "@stylistic/function-call-argument-newline": "off",
1978
- "@stylistic/function-call-spacing": "off",
1979
- "@stylistic/function-paren-newline": "off",
1980
- "@stylistic/generator-star-spacing": "off",
1981
- "@stylistic/implicit-arrow-linebreak": "off",
1982
- "@stylistic/indent": "off",
1983
- "@stylistic/jsx-quotes": "off",
1984
- "@stylistic/key-spacing": "off",
1985
- "@stylistic/keyword-spacing": "off",
1986
- "@stylistic/linebreak-style": "off",
1987
- "@stylistic/max-statements-per-line": "off",
1988
- "@stylistic/multiline-ternary": "off",
1989
- "@stylistic/new-parens": "off",
1990
- "@stylistic/newline-per-chained-call": "off",
1991
- "@stylistic/no-extra-parens": "off",
1992
- "@stylistic/no-extra-semi": "off",
1993
- "@stylistic/no-floating-decimal": "off",
1994
- "@stylistic/no-mixed-spaces-and-tabs": "off",
1995
- "@stylistic/no-multi-spaces": "off",
1996
- "@stylistic/no-multiple-empty-lines": "off",
1997
- "@stylistic/no-trailing-spaces": "off",
1998
- "@stylistic/no-whitespace-before-property": "off",
1999
- "@stylistic/nonblock-statement-body-position": "off",
2000
- "@stylistic/object-curly-newline": "off",
2001
- "@stylistic/object-curly-spacing": "off",
2002
- "@stylistic/object-property-newline": "off",
2003
- "@stylistic/one-var-declaration-per-line": "off",
2004
- "@stylistic/operator-linebreak": "off",
2005
- "@stylistic/padded-blocks": "off",
2006
- "@stylistic/quote-props": "off",
2007
- "@stylistic/rest-spread-spacing": "off",
2008
- "@stylistic/semi": "off",
2009
- "@stylistic/semi-spacing": "off",
2010
- "@stylistic/semi-style": "off",
2011
- "@stylistic/space-before-blocks": "off",
2012
- "@stylistic/space-before-function-paren": "off",
2013
- "@stylistic/space-in-parens": "off",
2014
- "@stylistic/space-infix-ops": "off",
2015
- "@stylistic/space-unary-ops": "off",
2016
- "@stylistic/switch-colon-spacing": "off",
2017
- "@stylistic/template-curly-spacing": "off",
2018
- "@stylistic/template-tag-spacing": "off",
2019
- "@stylistic/wrap-iife": "off",
2020
- "@stylistic/wrap-regex": "off",
2021
- "@stylistic/yield-star-spacing": "off",
2022
- "@stylistic/member-delimiter-style": "off",
2023
- "@stylistic/type-annotation-spacing": "off",
2024
- "@stylistic/jsx-child-element-spacing": "off",
2025
- "@stylistic/jsx-closing-bracket-location": "off",
2026
- "@stylistic/jsx-closing-tag-location": "off",
2027
- "@stylistic/jsx-curly-newline": "off",
2028
- "@stylistic/jsx-curly-spacing": "off",
2029
- "@stylistic/jsx-equals-spacing": "off",
2030
- "@stylistic/jsx-first-prop-new-line": "off",
2031
- "@stylistic/jsx-indent": "off",
2032
- "@stylistic/jsx-indent-props": "off",
2033
- "@stylistic/jsx-max-props-per-line": "off",
2034
- "@stylistic/jsx-newline": "off",
2035
- "@stylistic/jsx-one-expression-per-line": "off",
2036
- "@stylistic/jsx-props-no-multi-spaces": "off",
2037
- "@stylistic/jsx-tag-spacing": "off",
2038
- "@stylistic/jsx-wrap-multilines": "off",
2039
- "@stylistic/indent-binary-ops": "off",
2040
- "@stylistic/type-generic-spacing": "off",
2041
- "@stylistic/type-named-tuple-spacing": "off",
2042
- "@stylistic/js/array-bracket-newline": "off",
2043
- "@stylistic/js/array-bracket-spacing": "off",
2044
- "@stylistic/js/array-element-newline": "off",
2045
- "@stylistic/js/arrow-parens": "off",
2046
- "@stylistic/js/arrow-spacing": "off",
2047
- "@stylistic/js/block-spacing": "off",
2048
- "@stylistic/js/brace-style": "off",
2049
- "@stylistic/js/comma-dangle": "off",
2050
- "@stylistic/js/comma-spacing": "off",
2051
- "@stylistic/js/comma-style": "off",
2052
- "@stylistic/js/computed-property-spacing": "off",
2053
- "@stylistic/js/dot-location": "off",
2054
- "@stylistic/js/eol-last": "off",
2055
- "@stylistic/js/func-call-spacing": "off",
2056
- "@stylistic/js/function-call-argument-newline": "off",
2057
- "@stylistic/js/function-call-spacing": "off",
2058
- "@stylistic/js/function-paren-newline": "off",
2059
- "@stylistic/js/generator-star-spacing": "off",
2060
- "@stylistic/js/implicit-arrow-linebreak": "off",
2061
- "@stylistic/js/indent": "off",
2062
- "@stylistic/js/jsx-quotes": "off",
2063
- "@stylistic/js/key-spacing": "off",
2064
- "@stylistic/js/keyword-spacing": "off",
2065
- "@stylistic/js/linebreak-style": "off",
2066
- "@stylistic/js/max-statements-per-line": "off",
2067
- "@stylistic/js/multiline-ternary": "off",
2068
- "@stylistic/js/new-parens": "off",
2069
- "@stylistic/js/newline-per-chained-call": "off",
2070
- "@stylistic/js/no-extra-parens": "off",
2071
- "@stylistic/js/no-extra-semi": "off",
2072
- "@stylistic/js/no-floating-decimal": "off",
2073
- "@stylistic/js/no-mixed-spaces-and-tabs": "off",
2074
- "@stylistic/js/no-multi-spaces": "off",
2075
- "@stylistic/js/no-multiple-empty-lines": "off",
2076
- "@stylistic/js/no-trailing-spaces": "off",
2077
- "@stylistic/js/no-whitespace-before-property": "off",
2078
- "@stylistic/js/nonblock-statement-body-position": "off",
2079
- "@stylistic/js/object-curly-newline": "off",
2080
- "@stylistic/js/object-curly-spacing": "off",
2081
- "@stylistic/js/object-property-newline": "off",
2082
- "@stylistic/js/one-var-declaration-per-line": "off",
2083
- "@stylistic/js/operator-linebreak": "off",
2084
- "@stylistic/js/padded-blocks": "off",
2085
- "@stylistic/js/quote-props": "off",
2086
- "@stylistic/js/rest-spread-spacing": "off",
2087
- "@stylistic/js/semi": "off",
2088
- "@stylistic/js/semi-spacing": "off",
2089
- "@stylistic/js/semi-style": "off",
2090
- "@stylistic/js/space-before-blocks": "off",
2091
- "@stylistic/js/space-before-function-paren": "off",
2092
- "@stylistic/js/space-in-parens": "off",
2093
- "@stylistic/js/space-infix-ops": "off",
2094
- "@stylistic/js/space-unary-ops": "off",
2095
- "@stylistic/js/switch-colon-spacing": "off",
2096
- "@stylistic/js/template-curly-spacing": "off",
2097
- "@stylistic/js/template-tag-spacing": "off",
2098
- "@stylistic/js/wrap-iife": "off",
2099
- "@stylistic/js/wrap-regex": "off",
2100
- "@stylistic/js/yield-star-spacing": "off",
2101
- "@stylistic/ts/block-spacing": "off",
2102
- "@stylistic/ts/brace-style": "off",
2103
- "@stylistic/ts/comma-dangle": "off",
2104
- "@stylistic/ts/comma-spacing": "off",
2105
- "@stylistic/ts/func-call-spacing": "off",
2106
- "@stylistic/ts/function-call-spacing": "off",
2107
- "@stylistic/ts/indent": "off",
2108
- "@stylistic/ts/key-spacing": "off",
2109
- "@stylistic/ts/keyword-spacing": "off",
2110
- "@stylistic/ts/member-delimiter-style": "off",
2111
- "@stylistic/ts/no-extra-parens": "off",
2112
- "@stylistic/ts/no-extra-semi": "off",
2113
- "@stylistic/ts/object-curly-spacing": "off",
2114
- "@stylistic/ts/semi": "off",
2115
- "@stylistic/ts/space-before-blocks": "off",
2116
- "@stylistic/ts/space-before-function-paren": "off",
2117
- "@stylistic/ts/space-infix-ops": "off",
2118
- "@stylistic/ts/type-annotation-spacing": "off",
2119
- "@stylistic/jsx/jsx-child-element-spacing": "off",
2120
- "@stylistic/jsx/jsx-closing-bracket-location": "off",
2121
- "@stylistic/jsx/jsx-closing-tag-location": "off",
2122
- "@stylistic/jsx/jsx-curly-newline": "off",
2123
- "@stylistic/jsx/jsx-curly-spacing": "off",
2124
- "@stylistic/jsx/jsx-equals-spacing": "off",
2125
- "@stylistic/jsx/jsx-first-prop-new-line": "off",
2126
- "@stylistic/jsx/jsx-indent": "off",
2127
- "@stylistic/jsx/jsx-indent-props": "off",
2128
- "@stylistic/jsx/jsx-max-props-per-line": "off",
2129
- "@typescript-eslint/block-spacing": "off",
2130
- "@typescript-eslint/brace-style": "off",
2131
- "@typescript-eslint/comma-dangle": "off",
2132
- "@typescript-eslint/comma-spacing": "off",
2133
- "@typescript-eslint/func-call-spacing": "off",
2134
- "@typescript-eslint/indent": "off",
2135
- "@typescript-eslint/key-spacing": "off",
2136
- "@typescript-eslint/keyword-spacing": "off",
2137
- "@typescript-eslint/member-delimiter-style": "off",
2138
- "@typescript-eslint/no-extra-parens": "off",
2139
- "@typescript-eslint/no-extra-semi": "off",
2140
- "@typescript-eslint/object-curly-spacing": "off",
2141
- "@typescript-eslint/semi": "off",
2142
- "@typescript-eslint/space-before-blocks": "off",
2143
- "@typescript-eslint/space-before-function-paren": "off",
2144
- "@typescript-eslint/space-infix-ops": "off",
2145
- "@typescript-eslint/type-annotation-spacing": "off",
2146
- "babel/object-curly-spacing": "off",
2147
- "babel/semi": "off",
2148
- "flowtype/boolean-style": "off",
2149
- "flowtype/delimiter-dangle": "off",
2150
- "flowtype/generic-spacing": "off",
2151
- "flowtype/object-type-curly-spacing": "off",
2152
- "flowtype/object-type-delimiter": "off",
2153
- "flowtype/quotes": "off",
2154
- "flowtype/semi": "off",
2155
- "flowtype/space-after-type-colon": "off",
2156
- "flowtype/space-before-generic-bracket": "off",
2157
- "flowtype/space-before-type-colon": "off",
2158
- "flowtype/union-intersection-spacing": "off",
2159
- "react/jsx-child-element-spacing": "off",
2160
- "react/jsx-closing-bracket-location": "off",
2161
- "react/jsx-closing-tag-location": "off",
2162
- "react/jsx-curly-newline": "off",
2163
- "react/jsx-curly-spacing": "off",
2164
- "react/jsx-equals-spacing": "off",
2165
- "react/jsx-first-prop-new-line": "off",
2166
- "react/jsx-indent": "off",
2167
- "react/jsx-indent-props": "off",
2168
- "react/jsx-max-props-per-line": "off",
2169
- "react/jsx-newline": "off",
2170
- "react/jsx-one-expression-per-line": "off",
2171
- "react/jsx-props-no-multi-spaces": "off",
2172
- "react/jsx-tag-spacing": "off",
2173
- "react/jsx-wrap-multilines": "off",
2174
- "standard/array-bracket-even-spacing": "off",
2175
- "standard/computed-property-even-spacing": "off",
2176
- "standard/object-curly-even-spacing": "off",
2177
- "unicorn/empty-brace-spaces": "off",
2178
- "unicorn/no-nested-ternary": "off",
2179
- "unicorn/number-literal-case": "off",
2180
- "vue/array-bracket-newline": "off",
2181
- "vue/array-bracket-spacing": "off",
2182
- "vue/array-element-newline": "off",
2183
- "vue/arrow-spacing": "off",
2184
- "vue/block-spacing": "off",
2185
- "vue/block-tag-newline": "off",
2186
- "vue/brace-style": "off",
2187
- "vue/comma-dangle": "off",
2188
- "vue/comma-spacing": "off",
2189
- "vue/comma-style": "off",
2190
- "vue/dot-location": "off",
2191
- "vue/func-call-spacing": "off",
2192
- "vue/html-closing-bracket-newline": "off",
2193
- "vue/html-closing-bracket-spacing": "off",
2194
- "vue/html-end-tags": "off",
2195
- "vue/html-indent": "off",
2196
- "vue/html-quotes": "off",
2197
- "vue/key-spacing": "off",
2198
- "vue/keyword-spacing": "off",
2199
- "vue/max-attributes-per-line": "off",
2200
- "vue/multiline-html-element-content-newline": "off",
2201
- "vue/multiline-ternary": "off",
2202
- "vue/mustache-interpolation-spacing": "off",
2203
- "vue/no-extra-parens": "off",
2204
- "vue/no-multi-spaces": "off",
2205
- "vue/no-spaces-around-equal-signs-in-attribute": "off",
2206
- "vue/object-curly-newline": "off",
2207
- "vue/object-curly-spacing": "off",
2208
- "vue/object-property-newline": "off",
2209
- "vue/operator-linebreak": "off",
2210
- "vue/quote-props": "off",
2211
- "vue/script-indent": "off",
2212
- "vue/singleline-html-element-content-newline": "off",
2213
- "vue/space-in-parens": "off",
2214
- "vue/space-infix-ops": "off",
2215
- "vue/space-unary-ops": "off",
2216
- "vue/template-curly-spacing": "off",
2217
- "space-unary-word-ops": "off",
2218
- "generator-star": "off",
2219
- "no-comma-dangle": "off",
2220
- "no-reserved-keys": "off",
2221
- "no-space-before-semi": "off",
2222
- "no-wrap-func": "off",
2223
- "space-after-function-name": "off",
2224
- "space-before-function-parentheses": "off",
2225
- "space-in-brackets": "off",
2226
- "no-arrow-condition": "off",
2227
- "space-after-keywords": "off",
2228
- "space-before-keywords": "off",
2229
- "space-return-throw-case": "off",
2230
- "no-spaced-func": "off",
2231
- "indent-legacy": "off",
2232
- "array-bracket-newline": "off",
2233
- "array-bracket-spacing": "off",
2234
- "array-element-newline": "off",
2235
- "arrow-parens": "off",
2236
- "arrow-spacing": "off",
2237
- "block-spacing": "off",
2238
- "brace-style": "off",
2239
- "comma-dangle": "off",
2240
- "comma-spacing": "off",
2241
- "comma-style": "off",
2242
- "computed-property-spacing": "off",
2243
- "dot-location": "off",
2244
- "eol-last": "off",
2245
- "func-call-spacing": "off",
2246
- "function-call-argument-newline": "off",
2247
- "function-paren-newline": "off",
2248
- "generator-star-spacing": "off",
2249
- "implicit-arrow-linebreak": "off",
2250
- indent: "off",
2251
- "jsx-quotes": "off",
2252
- "key-spacing": "off",
2253
- "keyword-spacing": "off",
2254
- "linebreak-style": "off",
2255
- "lines-around-comment": 0,
2256
- "max-len": 0,
2257
- "max-statements-per-line": "off",
2258
- "multiline-ternary": "off",
2259
- "new-parens": "off",
2260
- "newline-per-chained-call": "off",
2261
- "no-confusing-arrow": 0,
2262
- "no-extra-parens": "off",
2263
- "no-extra-semi": "off",
2264
- "no-floating-decimal": "off",
2265
- "no-mixed-operators": 0,
2266
- "no-mixed-spaces-and-tabs": "off",
2267
- "no-multi-spaces": "off",
2268
- "no-multiple-empty-lines": "off",
2269
- "no-tabs": 0,
2270
- "no-trailing-spaces": "off",
2271
- "no-whitespace-before-property": "off",
2272
- "nonblock-statement-body-position": "off",
2273
- "object-curly-newline": "off",
2274
- "object-curly-spacing": "off",
2275
- "object-property-newline": "off",
2276
- "one-var-declaration-per-line": "off",
2277
- "operator-linebreak": "off",
2278
- "padded-blocks": "off",
2279
- "quote-props": "off",
2280
- quotes: 0,
2281
- "rest-spread-spacing": "off",
2282
- semi: "off",
2283
- "semi-spacing": "off",
2284
- "semi-style": "off",
2285
- "space-before-blocks": "off",
2286
- "space-before-function-paren": "off",
2287
- "space-in-parens": "off",
2288
- "space-infix-ops": "off",
2289
- "space-unary-ops": "off",
2290
- "switch-colon-spacing": "off",
2291
- "template-curly-spacing": "off",
2292
- "template-tag-spacing": "off",
2293
- "wrap-iife": "off",
2294
- "wrap-regex": "off",
2295
- "yield-star-spacing": "off",
2296
- "react/jsx-space-before-closing": "off",
2297
- "prettier/prettier": "error",
2298
- },
2299
- },
2300
1986
  ];
@@ -18,8 +18,7 @@
18
18
  "plugin:sonarjs/recommended-legacy",
19
19
  "plugin:react-hooks/recommended-legacy",
20
20
  "plugin:import-esm/recommended",
21
- "plugin:cypress/recommended",
22
- "plugin:prettier/recommended"
21
+ "plugin:cypress/recommended"
23
22
  ],
24
23
  "rules": {
25
24
  "no-console": [
@@ -60,6 +59,13 @@
60
59
  ],
61
60
  "message": "Default import from React is not allowed. Use named imports instead."
62
61
  },
62
+ {
63
+ "name": "react-dom",
64
+ "importNames": [
65
+ "default"
66
+ ],
67
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
68
+ },
63
69
  {
64
70
  "name": "@gooddata/sdk-ui-kit",
65
71
  "importNames": [
@@ -567,6 +573,10 @@
567
573
  {
568
574
  "selector": "MemberExpression[object.name='React']",
569
575
  "message": "Do not use `React.*`. Use named imports instead."
576
+ },
577
+ {
578
+ "selector": "MemberExpression[object.name='ReactDOM']",
579
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
570
580
  }
571
581
  ],
572
582
  "sort-imports": [
@@ -586,16 +596,7 @@
586
596
  }
587
597
  ],
588
598
  "no-extra-boolean-cast": "error",
589
- "no-unexpected-multiline": "off",
590
- "no-warning-comments": [
591
- "warn",
592
- {
593
- "terms": [
594
- "todo"
595
- ],
596
- "location": "start"
597
- }
598
- ],
599
+ "no-unexpected-multiline": 0,
599
600
  "header/header": [
600
601
  2,
601
602
  "line",
@@ -723,6 +724,45 @@
723
724
  "no-eval": 2,
724
725
  "no-delete-var": 2,
725
726
  "no-octal-escape": 2,
727
+ "curly": 0,
728
+ "@typescript-eslint/lines-around-comment": 0,
729
+ "@typescript-eslint/quotes": 0,
730
+ "unicorn/template-indent": 0,
731
+ "@typescript-eslint/block-spacing": "off",
732
+ "@typescript-eslint/brace-style": "off",
733
+ "@typescript-eslint/comma-dangle": "off",
734
+ "@typescript-eslint/comma-spacing": "off",
735
+ "@typescript-eslint/func-call-spacing": "off",
736
+ "@typescript-eslint/indent": "off",
737
+ "@typescript-eslint/key-spacing": "off",
738
+ "@typescript-eslint/keyword-spacing": "off",
739
+ "@typescript-eslint/member-delimiter-style": "off",
740
+ "@typescript-eslint/no-extra-parens": "off",
741
+ "@typescript-eslint/no-extra-semi": "off",
742
+ "@typescript-eslint/object-curly-spacing": "off",
743
+ "@typescript-eslint/semi": "off",
744
+ "@typescript-eslint/space-before-blocks": "off",
745
+ "@typescript-eslint/space-before-function-paren": "off",
746
+ "@typescript-eslint/space-infix-ops": "off",
747
+ "@typescript-eslint/type-annotation-spacing": "off",
748
+ "react/jsx-child-element-spacing": "off",
749
+ "react/jsx-closing-bracket-location": "off",
750
+ "react/jsx-closing-tag-location": "off",
751
+ "react/jsx-curly-newline": "off",
752
+ "react/jsx-curly-spacing": "off",
753
+ "react/jsx-equals-spacing": "off",
754
+ "react/jsx-first-prop-new-line": "off",
755
+ "react/jsx-indent": "off",
756
+ "react/jsx-indent-props": "off",
757
+ "react/jsx-max-props-per-line": "off",
758
+ "react/jsx-newline": "off",
759
+ "react/jsx-one-expression-per-line": "off",
760
+ "react/jsx-props-no-multi-spaces": "off",
761
+ "react/jsx-tag-spacing": "off",
762
+ "react/jsx-wrap-multilines": "off",
763
+ "unicorn/empty-brace-spaces": "off",
764
+ "unicorn/no-nested-ternary": "off",
765
+ "unicorn/number-literal-case": "off",
726
766
  "react/no-danger": "error",
727
767
  "react/prop-types": "off",
728
768
  "react/function-component-definition": [
@@ -784,6 +824,13 @@
784
824
  ],
785
825
  "message": "Default import from React is not allowed. Use named imports instead."
786
826
  },
827
+ {
828
+ "name": "react-dom",
829
+ "importNames": [
830
+ "default"
831
+ ],
832
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
833
+ },
787
834
  {
788
835
  "name": "@gooddata/sdk-ui-kit",
789
836
  "importNames": [