@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
@@ -11,7 +11,6 @@ import plugin0007 from "eslint-plugin-no-only-tests";
11
11
  import plugin0008 from "eslint-plugin-sonarjs";
12
12
  import plugin0009 from "eslint-plugin-import-esm";
13
13
  import plugin0010 from "@vitest/eslint-plugin";
14
- import plugin0011 from "eslint-plugin-prettier";
15
14
 
16
15
  export default [
17
16
  {
@@ -120,6 +119,13 @@ export default [
120
119
  ],
121
120
  message: "Default import from React is not allowed. Use named imports instead.",
122
121
  },
122
+ {
123
+ name: "react-dom",
124
+ importNames: [
125
+ "default",
126
+ ],
127
+ message: "Default import from React DOM is not allowed. Use named imports instead.",
128
+ },
123
129
  {
124
130
  name: "@gooddata/sdk-ui-kit",
125
131
  importNames: [
@@ -628,6 +634,10 @@ export default [
628
634
  selector: "MemberExpression[object.name='React']",
629
635
  message: "Do not use `React.*`. Use named imports instead.",
630
636
  },
637
+ {
638
+ selector: "MemberExpression[object.name='ReactDOM']",
639
+ message: "Do not use `ReactDOM.*`. Use named imports instead.",
640
+ },
631
641
  ],
632
642
  "sort-imports": [
633
643
  "error",
@@ -644,15 +654,6 @@ export default [
644
654
  defaultAssignment: false,
645
655
  },
646
656
  ],
647
- "no-warning-comments": [
648
- "warn",
649
- {
650
- terms: [
651
- "todo",
652
- ],
653
- location: "start",
654
- },
655
- ],
656
657
  },
657
658
  },
658
659
  {
@@ -684,6 +685,13 @@ export default [
684
685
  ],
685
686
  message: "Default import from React is not allowed. Use named imports instead.",
686
687
  },
688
+ {
689
+ name: "react-dom",
690
+ importNames: [
691
+ "default",
692
+ ],
693
+ message: "Default import from React DOM is not allowed. Use named imports instead.",
694
+ },
687
695
  {
688
696
  name: "@gooddata/sdk-ui-kit",
689
697
  importNames: [
@@ -1831,238 +1839,12 @@ export default [
1831
1839
  ],
1832
1840
  },
1833
1841
  {
1834
- languageOptions: {
1835
- ecmaVersion: 2022,
1836
- sourceType: "module",
1837
- },
1838
- },
1839
- {
1840
- plugins: {
1841
- "import-esm": plugin0009,
1842
- },
1843
- rules: {
1844
- "import-esm/explicit-extension": "error",
1845
- },
1846
- },
1847
- {
1848
- plugins: {
1849
- vitest: plugin0010,
1850
- },
1851
- rules: {
1852
- "vitest/expect-expect": "off",
1853
- "vitest/no-conditional-expect": "error",
1854
- "vitest/no-disabled-tests": "warn",
1855
- "vitest/no-focused-tests": "warn",
1856
- "vitest/no-commented-out-tests": "warn",
1857
- "vitest/no-identical-title": "warn",
1858
- "vitest/no-import-node-test": "error",
1859
- "vitest/no-interpolation-in-snapshots": "error",
1860
- "vitest/no-mocks-import": "error",
1861
- "vitest/no-standalone-expect": "error",
1862
- "vitest/no-unneeded-async-expect-function": "error",
1863
- "vitest/prefer-called-exactly-once-with": "error",
1864
- "vitest/require-local-test-context-for-concurrent-snapshots": "error",
1865
- "vitest/valid-describe-callback": "error",
1866
- "vitest/valid-expect": "warn",
1867
- "vitest/valid-expect-in-promise": "error",
1868
- "vitest/valid-title": "error",
1869
- },
1870
- },
1871
- {
1872
- plugins: {
1873
- prettier: plugin0011,
1874
- },
1875
1842
  rules: {
1876
1843
  curly: 0,
1877
1844
  "no-unexpected-multiline": 0,
1878
- "@stylistic/lines-around-comment": 0,
1879
- "@stylistic/max-len": 0,
1880
- "@stylistic/no-confusing-arrow": 0,
1881
- "@stylistic/no-mixed-operators": 0,
1882
- "@stylistic/no-tabs": 0,
1883
- "@stylistic/quotes": 0,
1884
- "@stylistic/js/lines-around-comment": 0,
1885
- "@stylistic/js/max-len": 0,
1886
- "@stylistic/js/no-confusing-arrow": 0,
1887
- "@stylistic/js/no-mixed-operators": 0,
1888
- "@stylistic/js/no-tabs": 0,
1889
- "@stylistic/js/quotes": 0,
1890
- "@stylistic/ts/lines-around-comment": 0,
1891
- "@stylistic/ts/quotes": 0,
1892
1845
  "@typescript-eslint/lines-around-comment": 0,
1893
1846
  "@typescript-eslint/quotes": 0,
1894
- "babel/quotes": 0,
1895
1847
  "unicorn/template-indent": 0,
1896
- "vue/html-self-closing": 0,
1897
- "vue/max-len": 0,
1898
- "@babel/object-curly-spacing": "off",
1899
- "@babel/semi": "off",
1900
- "@stylistic/array-bracket-newline": "off",
1901
- "@stylistic/array-bracket-spacing": "off",
1902
- "@stylistic/array-element-newline": "off",
1903
- "@stylistic/arrow-parens": "off",
1904
- "@stylistic/arrow-spacing": "off",
1905
- "@stylistic/block-spacing": "off",
1906
- "@stylistic/brace-style": "off",
1907
- "@stylistic/comma-dangle": "off",
1908
- "@stylistic/comma-spacing": "off",
1909
- "@stylistic/comma-style": "off",
1910
- "@stylistic/computed-property-spacing": "off",
1911
- "@stylistic/dot-location": "off",
1912
- "@stylistic/eol-last": "off",
1913
- "@stylistic/func-call-spacing": "off",
1914
- "@stylistic/function-call-argument-newline": "off",
1915
- "@stylistic/function-call-spacing": "off",
1916
- "@stylistic/function-paren-newline": "off",
1917
- "@stylistic/generator-star-spacing": "off",
1918
- "@stylistic/implicit-arrow-linebreak": "off",
1919
- "@stylistic/indent": "off",
1920
- "@stylistic/jsx-quotes": "off",
1921
- "@stylistic/key-spacing": "off",
1922
- "@stylistic/keyword-spacing": "off",
1923
- "@stylistic/linebreak-style": "off",
1924
- "@stylistic/max-statements-per-line": "off",
1925
- "@stylistic/multiline-ternary": "off",
1926
- "@stylistic/new-parens": "off",
1927
- "@stylistic/newline-per-chained-call": "off",
1928
- "@stylistic/no-extra-parens": "off",
1929
- "@stylistic/no-extra-semi": "off",
1930
- "@stylistic/no-floating-decimal": "off",
1931
- "@stylistic/no-mixed-spaces-and-tabs": "off",
1932
- "@stylistic/no-multi-spaces": "off",
1933
- "@stylistic/no-multiple-empty-lines": "off",
1934
- "@stylistic/no-trailing-spaces": "off",
1935
- "@stylistic/no-whitespace-before-property": "off",
1936
- "@stylistic/nonblock-statement-body-position": "off",
1937
- "@stylistic/object-curly-newline": "off",
1938
- "@stylistic/object-curly-spacing": "off",
1939
- "@stylistic/object-property-newline": "off",
1940
- "@stylistic/one-var-declaration-per-line": "off",
1941
- "@stylistic/operator-linebreak": "off",
1942
- "@stylistic/padded-blocks": "off",
1943
- "@stylistic/quote-props": "off",
1944
- "@stylistic/rest-spread-spacing": "off",
1945
- "@stylistic/semi": "off",
1946
- "@stylistic/semi-spacing": "off",
1947
- "@stylistic/semi-style": "off",
1948
- "@stylistic/space-before-blocks": "off",
1949
- "@stylistic/space-before-function-paren": "off",
1950
- "@stylistic/space-in-parens": "off",
1951
- "@stylistic/space-infix-ops": "off",
1952
- "@stylistic/space-unary-ops": "off",
1953
- "@stylistic/switch-colon-spacing": "off",
1954
- "@stylistic/template-curly-spacing": "off",
1955
- "@stylistic/template-tag-spacing": "off",
1956
- "@stylistic/wrap-iife": "off",
1957
- "@stylistic/wrap-regex": "off",
1958
- "@stylistic/yield-star-spacing": "off",
1959
- "@stylistic/member-delimiter-style": "off",
1960
- "@stylistic/type-annotation-spacing": "off",
1961
- "@stylistic/jsx-child-element-spacing": "off",
1962
- "@stylistic/jsx-closing-bracket-location": "off",
1963
- "@stylistic/jsx-closing-tag-location": "off",
1964
- "@stylistic/jsx-curly-newline": "off",
1965
- "@stylistic/jsx-curly-spacing": "off",
1966
- "@stylistic/jsx-equals-spacing": "off",
1967
- "@stylistic/jsx-first-prop-new-line": "off",
1968
- "@stylistic/jsx-indent": "off",
1969
- "@stylistic/jsx-indent-props": "off",
1970
- "@stylistic/jsx-max-props-per-line": "off",
1971
- "@stylistic/jsx-newline": "off",
1972
- "@stylistic/jsx-one-expression-per-line": "off",
1973
- "@stylistic/jsx-props-no-multi-spaces": "off",
1974
- "@stylistic/jsx-tag-spacing": "off",
1975
- "@stylistic/jsx-wrap-multilines": "off",
1976
- "@stylistic/indent-binary-ops": "off",
1977
- "@stylistic/type-generic-spacing": "off",
1978
- "@stylistic/type-named-tuple-spacing": "off",
1979
- "@stylistic/js/array-bracket-newline": "off",
1980
- "@stylistic/js/array-bracket-spacing": "off",
1981
- "@stylistic/js/array-element-newline": "off",
1982
- "@stylistic/js/arrow-parens": "off",
1983
- "@stylistic/js/arrow-spacing": "off",
1984
- "@stylistic/js/block-spacing": "off",
1985
- "@stylistic/js/brace-style": "off",
1986
- "@stylistic/js/comma-dangle": "off",
1987
- "@stylistic/js/comma-spacing": "off",
1988
- "@stylistic/js/comma-style": "off",
1989
- "@stylistic/js/computed-property-spacing": "off",
1990
- "@stylistic/js/dot-location": "off",
1991
- "@stylistic/js/eol-last": "off",
1992
- "@stylistic/js/func-call-spacing": "off",
1993
- "@stylistic/js/function-call-argument-newline": "off",
1994
- "@stylistic/js/function-call-spacing": "off",
1995
- "@stylistic/js/function-paren-newline": "off",
1996
- "@stylistic/js/generator-star-spacing": "off",
1997
- "@stylistic/js/implicit-arrow-linebreak": "off",
1998
- "@stylistic/js/indent": "off",
1999
- "@stylistic/js/jsx-quotes": "off",
2000
- "@stylistic/js/key-spacing": "off",
2001
- "@stylistic/js/keyword-spacing": "off",
2002
- "@stylistic/js/linebreak-style": "off",
2003
- "@stylistic/js/max-statements-per-line": "off",
2004
- "@stylistic/js/multiline-ternary": "off",
2005
- "@stylistic/js/new-parens": "off",
2006
- "@stylistic/js/newline-per-chained-call": "off",
2007
- "@stylistic/js/no-extra-parens": "off",
2008
- "@stylistic/js/no-extra-semi": "off",
2009
- "@stylistic/js/no-floating-decimal": "off",
2010
- "@stylistic/js/no-mixed-spaces-and-tabs": "off",
2011
- "@stylistic/js/no-multi-spaces": "off",
2012
- "@stylistic/js/no-multiple-empty-lines": "off",
2013
- "@stylistic/js/no-trailing-spaces": "off",
2014
- "@stylistic/js/no-whitespace-before-property": "off",
2015
- "@stylistic/js/nonblock-statement-body-position": "off",
2016
- "@stylistic/js/object-curly-newline": "off",
2017
- "@stylistic/js/object-curly-spacing": "off",
2018
- "@stylistic/js/object-property-newline": "off",
2019
- "@stylistic/js/one-var-declaration-per-line": "off",
2020
- "@stylistic/js/operator-linebreak": "off",
2021
- "@stylistic/js/padded-blocks": "off",
2022
- "@stylistic/js/quote-props": "off",
2023
- "@stylistic/js/rest-spread-spacing": "off",
2024
- "@stylistic/js/semi": "off",
2025
- "@stylistic/js/semi-spacing": "off",
2026
- "@stylistic/js/semi-style": "off",
2027
- "@stylistic/js/space-before-blocks": "off",
2028
- "@stylistic/js/space-before-function-paren": "off",
2029
- "@stylistic/js/space-in-parens": "off",
2030
- "@stylistic/js/space-infix-ops": "off",
2031
- "@stylistic/js/space-unary-ops": "off",
2032
- "@stylistic/js/switch-colon-spacing": "off",
2033
- "@stylistic/js/template-curly-spacing": "off",
2034
- "@stylistic/js/template-tag-spacing": "off",
2035
- "@stylistic/js/wrap-iife": "off",
2036
- "@stylistic/js/wrap-regex": "off",
2037
- "@stylistic/js/yield-star-spacing": "off",
2038
- "@stylistic/ts/block-spacing": "off",
2039
- "@stylistic/ts/brace-style": "off",
2040
- "@stylistic/ts/comma-dangle": "off",
2041
- "@stylistic/ts/comma-spacing": "off",
2042
- "@stylistic/ts/func-call-spacing": "off",
2043
- "@stylistic/ts/function-call-spacing": "off",
2044
- "@stylistic/ts/indent": "off",
2045
- "@stylistic/ts/key-spacing": "off",
2046
- "@stylistic/ts/keyword-spacing": "off",
2047
- "@stylistic/ts/member-delimiter-style": "off",
2048
- "@stylistic/ts/no-extra-parens": "off",
2049
- "@stylistic/ts/no-extra-semi": "off",
2050
- "@stylistic/ts/object-curly-spacing": "off",
2051
- "@stylistic/ts/semi": "off",
2052
- "@stylistic/ts/space-before-blocks": "off",
2053
- "@stylistic/ts/space-before-function-paren": "off",
2054
- "@stylistic/ts/space-infix-ops": "off",
2055
- "@stylistic/ts/type-annotation-spacing": "off",
2056
- "@stylistic/jsx/jsx-child-element-spacing": "off",
2057
- "@stylistic/jsx/jsx-closing-bracket-location": "off",
2058
- "@stylistic/jsx/jsx-closing-tag-location": "off",
2059
- "@stylistic/jsx/jsx-curly-newline": "off",
2060
- "@stylistic/jsx/jsx-curly-spacing": "off",
2061
- "@stylistic/jsx/jsx-equals-spacing": "off",
2062
- "@stylistic/jsx/jsx-first-prop-new-line": "off",
2063
- "@stylistic/jsx/jsx-indent": "off",
2064
- "@stylistic/jsx/jsx-indent-props": "off",
2065
- "@stylistic/jsx/jsx-max-props-per-line": "off",
2066
1848
  "@typescript-eslint/block-spacing": "off",
2067
1849
  "@typescript-eslint/brace-style": "off",
2068
1850
  "@typescript-eslint/comma-dangle": "off",
@@ -2080,19 +1862,6 @@ export default [
2080
1862
  "@typescript-eslint/space-before-function-paren": "off",
2081
1863
  "@typescript-eslint/space-infix-ops": "off",
2082
1864
  "@typescript-eslint/type-annotation-spacing": "off",
2083
- "babel/object-curly-spacing": "off",
2084
- "babel/semi": "off",
2085
- "flowtype/boolean-style": "off",
2086
- "flowtype/delimiter-dangle": "off",
2087
- "flowtype/generic-spacing": "off",
2088
- "flowtype/object-type-curly-spacing": "off",
2089
- "flowtype/object-type-delimiter": "off",
2090
- "flowtype/quotes": "off",
2091
- "flowtype/semi": "off",
2092
- "flowtype/space-after-type-colon": "off",
2093
- "flowtype/space-before-generic-bracket": "off",
2094
- "flowtype/space-before-type-colon": "off",
2095
- "flowtype/union-intersection-spacing": "off",
2096
1865
  "react/jsx-child-element-spacing": "off",
2097
1866
  "react/jsx-closing-bracket-location": "off",
2098
1867
  "react/jsx-closing-tag-location": "off",
@@ -2108,130 +1877,47 @@ export default [
2108
1877
  "react/jsx-props-no-multi-spaces": "off",
2109
1878
  "react/jsx-tag-spacing": "off",
2110
1879
  "react/jsx-wrap-multilines": "off",
2111
- "standard/array-bracket-even-spacing": "off",
2112
- "standard/computed-property-even-spacing": "off",
2113
- "standard/object-curly-even-spacing": "off",
2114
1880
  "unicorn/empty-brace-spaces": "off",
2115
1881
  "unicorn/no-nested-ternary": "off",
2116
1882
  "unicorn/number-literal-case": "off",
2117
- "vue/array-bracket-newline": "off",
2118
- "vue/array-bracket-spacing": "off",
2119
- "vue/array-element-newline": "off",
2120
- "vue/arrow-spacing": "off",
2121
- "vue/block-spacing": "off",
2122
- "vue/block-tag-newline": "off",
2123
- "vue/brace-style": "off",
2124
- "vue/comma-dangle": "off",
2125
- "vue/comma-spacing": "off",
2126
- "vue/comma-style": "off",
2127
- "vue/dot-location": "off",
2128
- "vue/func-call-spacing": "off",
2129
- "vue/html-closing-bracket-newline": "off",
2130
- "vue/html-closing-bracket-spacing": "off",
2131
- "vue/html-end-tags": "off",
2132
- "vue/html-indent": "off",
2133
- "vue/html-quotes": "off",
2134
- "vue/key-spacing": "off",
2135
- "vue/keyword-spacing": "off",
2136
- "vue/max-attributes-per-line": "off",
2137
- "vue/multiline-html-element-content-newline": "off",
2138
- "vue/multiline-ternary": "off",
2139
- "vue/mustache-interpolation-spacing": "off",
2140
- "vue/no-extra-parens": "off",
2141
- "vue/no-multi-spaces": "off",
2142
- "vue/no-spaces-around-equal-signs-in-attribute": "off",
2143
- "vue/object-curly-newline": "off",
2144
- "vue/object-curly-spacing": "off",
2145
- "vue/object-property-newline": "off",
2146
- "vue/operator-linebreak": "off",
2147
- "vue/quote-props": "off",
2148
- "vue/script-indent": "off",
2149
- "vue/singleline-html-element-content-newline": "off",
2150
- "vue/space-in-parens": "off",
2151
- "vue/space-infix-ops": "off",
2152
- "vue/space-unary-ops": "off",
2153
- "vue/template-curly-spacing": "off",
2154
- "space-unary-word-ops": "off",
2155
- "generator-star": "off",
2156
- "no-comma-dangle": "off",
2157
- "no-reserved-keys": "off",
2158
- "no-space-before-semi": "off",
2159
- "no-wrap-func": "off",
2160
- "space-after-function-name": "off",
2161
- "space-before-function-parentheses": "off",
2162
- "space-in-brackets": "off",
2163
- "no-arrow-condition": "off",
2164
- "space-after-keywords": "off",
2165
- "space-before-keywords": "off",
2166
- "space-return-throw-case": "off",
2167
- "no-spaced-func": "off",
2168
- "indent-legacy": "off",
2169
- "array-bracket-newline": "off",
2170
- "array-bracket-spacing": "off",
2171
- "array-element-newline": "off",
2172
- "arrow-parens": "off",
2173
- "arrow-spacing": "off",
2174
- "block-spacing": "off",
2175
- "brace-style": "off",
2176
- "comma-dangle": "off",
2177
- "comma-spacing": "off",
2178
- "comma-style": "off",
2179
- "computed-property-spacing": "off",
2180
- "dot-location": "off",
2181
- "eol-last": "off",
2182
- "func-call-spacing": "off",
2183
- "function-call-argument-newline": "off",
2184
- "function-paren-newline": "off",
2185
- "generator-star-spacing": "off",
2186
- "implicit-arrow-linebreak": "off",
2187
- indent: "off",
2188
- "jsx-quotes": "off",
2189
- "key-spacing": "off",
2190
- "keyword-spacing": "off",
2191
- "linebreak-style": "off",
2192
- "lines-around-comment": 0,
2193
- "max-len": 0,
2194
- "max-statements-per-line": "off",
2195
- "multiline-ternary": "off",
2196
- "new-parens": "off",
2197
- "newline-per-chained-call": "off",
2198
- "no-confusing-arrow": 0,
2199
- "no-extra-parens": "off",
2200
- "no-extra-semi": "off",
2201
- "no-floating-decimal": "off",
2202
- "no-mixed-operators": 0,
2203
- "no-mixed-spaces-and-tabs": "off",
2204
- "no-multi-spaces": "off",
2205
- "no-multiple-empty-lines": "off",
2206
- "no-tabs": 0,
2207
- "no-trailing-spaces": "off",
2208
- "no-whitespace-before-property": "off",
2209
- "nonblock-statement-body-position": "off",
2210
- "object-curly-newline": "off",
2211
- "object-curly-spacing": "off",
2212
- "object-property-newline": "off",
2213
- "one-var-declaration-per-line": "off",
2214
- "operator-linebreak": "off",
2215
- "padded-blocks": "off",
2216
- "quote-props": "off",
2217
- quotes: 0,
2218
- "rest-spread-spacing": "off",
2219
- semi: "off",
2220
- "semi-spacing": "off",
2221
- "semi-style": "off",
2222
- "space-before-blocks": "off",
2223
- "space-before-function-paren": "off",
2224
- "space-in-parens": "off",
2225
- "space-infix-ops": "off",
2226
- "space-unary-ops": "off",
2227
- "switch-colon-spacing": "off",
2228
- "template-curly-spacing": "off",
2229
- "template-tag-spacing": "off",
2230
- "wrap-iife": "off",
2231
- "wrap-regex": "off",
2232
- "yield-star-spacing": "off",
2233
- "react/jsx-space-before-closing": "off",
2234
- "prettier/prettier": "error",
1883
+ },
1884
+ },
1885
+ {
1886
+ languageOptions: {
1887
+ ecmaVersion: 2022,
1888
+ sourceType: "module",
1889
+ },
1890
+ },
1891
+ {
1892
+ plugins: {
1893
+ "import-esm": plugin0009,
1894
+ },
1895
+ rules: {
1896
+ "import-esm/explicit-extension": "error",
1897
+ },
1898
+ },
1899
+ {
1900
+ plugins: {
1901
+ vitest: plugin0010,
1902
+ },
1903
+ rules: {
1904
+ "vitest/expect-expect": "off",
1905
+ "vitest/no-conditional-expect": "error",
1906
+ "vitest/no-disabled-tests": "warn",
1907
+ "vitest/no-focused-tests": "warn",
1908
+ "vitest/no-commented-out-tests": "warn",
1909
+ "vitest/no-identical-title": "warn",
1910
+ "vitest/no-import-node-test": "error",
1911
+ "vitest/no-interpolation-in-snapshots": "error",
1912
+ "vitest/no-mocks-import": "error",
1913
+ "vitest/no-standalone-expect": "error",
1914
+ "vitest/no-unneeded-async-expect-function": "error",
1915
+ "vitest/prefer-called-exactly-once-with": "error",
1916
+ "vitest/require-local-test-context-for-concurrent-snapshots": "error",
1917
+ "vitest/valid-describe-callback": "error",
1918
+ "vitest/valid-expect": "warn",
1919
+ "vitest/valid-expect-in-promise": "error",
1920
+ "vitest/valid-title": "error",
2235
1921
  },
2236
1922
  },
2237
1923
  ];
@@ -14,8 +14,7 @@
14
14
  "plugin:regexp/recommended",
15
15
  "plugin:sonarjs/recommended-legacy",
16
16
  "plugin:import-esm/recommended",
17
- "plugin:@vitest/legacy-recommended",
18
- "plugin:prettier/recommended"
17
+ "plugin:@vitest/legacy-recommended"
19
18
  ],
20
19
  "rules": {
21
20
  "no-console": [
@@ -56,6 +55,13 @@
56
55
  ],
57
56
  "message": "Default import from React is not allowed. Use named imports instead."
58
57
  },
58
+ {
59
+ "name": "react-dom",
60
+ "importNames": [
61
+ "default"
62
+ ],
63
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
64
+ },
59
65
  {
60
66
  "name": "@gooddata/sdk-ui-kit",
61
67
  "importNames": [
@@ -563,6 +569,10 @@
563
569
  {
564
570
  "selector": "MemberExpression[object.name='React']",
565
571
  "message": "Do not use `React.*`. Use named imports instead."
572
+ },
573
+ {
574
+ "selector": "MemberExpression[object.name='ReactDOM']",
575
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
566
576
  }
567
577
  ],
568
578
  "sort-imports": [
@@ -582,16 +592,7 @@
582
592
  }
583
593
  ],
584
594
  "no-extra-boolean-cast": "error",
585
- "no-unexpected-multiline": "off",
586
- "no-warning-comments": [
587
- "warn",
588
- {
589
- "terms": [
590
- "todo"
591
- ],
592
- "location": "start"
593
- }
594
- ],
595
+ "no-unexpected-multiline": 0,
595
596
  "header/header": [
596
597
  2,
597
598
  "line",
@@ -719,6 +720,45 @@
719
720
  "no-eval": 2,
720
721
  "no-delete-var": 2,
721
722
  "no-octal-escape": 2,
723
+ "curly": 0,
724
+ "@typescript-eslint/lines-around-comment": 0,
725
+ "@typescript-eslint/quotes": 0,
726
+ "unicorn/template-indent": 0,
727
+ "@typescript-eslint/block-spacing": "off",
728
+ "@typescript-eslint/brace-style": "off",
729
+ "@typescript-eslint/comma-dangle": "off",
730
+ "@typescript-eslint/comma-spacing": "off",
731
+ "@typescript-eslint/func-call-spacing": "off",
732
+ "@typescript-eslint/indent": "off",
733
+ "@typescript-eslint/key-spacing": "off",
734
+ "@typescript-eslint/keyword-spacing": "off",
735
+ "@typescript-eslint/member-delimiter-style": "off",
736
+ "@typescript-eslint/no-extra-parens": "off",
737
+ "@typescript-eslint/no-extra-semi": "off",
738
+ "@typescript-eslint/object-curly-spacing": "off",
739
+ "@typescript-eslint/semi": "off",
740
+ "@typescript-eslint/space-before-blocks": "off",
741
+ "@typescript-eslint/space-before-function-paren": "off",
742
+ "@typescript-eslint/space-infix-ops": "off",
743
+ "@typescript-eslint/type-annotation-spacing": "off",
744
+ "react/jsx-child-element-spacing": "off",
745
+ "react/jsx-closing-bracket-location": "off",
746
+ "react/jsx-closing-tag-location": "off",
747
+ "react/jsx-curly-newline": "off",
748
+ "react/jsx-curly-spacing": "off",
749
+ "react/jsx-equals-spacing": "off",
750
+ "react/jsx-first-prop-new-line": "off",
751
+ "react/jsx-indent": "off",
752
+ "react/jsx-indent-props": "off",
753
+ "react/jsx-max-props-per-line": "off",
754
+ "react/jsx-newline": "off",
755
+ "react/jsx-one-expression-per-line": "off",
756
+ "react/jsx-props-no-multi-spaces": "off",
757
+ "react/jsx-tag-spacing": "off",
758
+ "react/jsx-wrap-multilines": "off",
759
+ "unicorn/empty-brace-spaces": "off",
760
+ "unicorn/no-nested-ternary": "off",
761
+ "unicorn/number-literal-case": "off",
722
762
  "@vitest/expect-expect": "off",
723
763
  "@vitest/no-commented-out-tests": "warn",
724
764
  "@vitest/valid-title": "error",
@@ -757,6 +797,13 @@
757
797
  ],
758
798
  "message": "Default import from React is not allowed. Use named imports instead."
759
799
  },
800
+ {
801
+ "name": "react-dom",
802
+ "importNames": [
803
+ "default"
804
+ ],
805
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
806
+ },
760
807
  {
761
808
  "name": "@gooddata/sdk-ui-kit",
762
809
  "importNames": [