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