@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
package/dist/browser.js CHANGED
@@ -9,7 +9,6 @@ import plugin0005 from "eslint-plugin-import-x";
9
9
  import plugin0006 from "eslint-plugin-jsdoc";
10
10
  import plugin0007 from "eslint-plugin-no-only-tests";
11
11
  import plugin0008 from "eslint-plugin-sonarjs";
12
- import plugin0009 from "eslint-plugin-prettier";
13
12
 
14
13
  export default [
15
14
  {
@@ -118,6 +117,13 @@ export default [
118
117
  ],
119
118
  message: "Default import from React is not allowed. Use named imports instead.",
120
119
  },
120
+ {
121
+ name: "react-dom",
122
+ importNames: [
123
+ "default",
124
+ ],
125
+ message: "Default import from React DOM is not allowed. Use named imports instead.",
126
+ },
121
127
  {
122
128
  name: "@gooddata/sdk-ui-kit",
123
129
  importNames: [
@@ -626,6 +632,10 @@ export default [
626
632
  selector: "MemberExpression[object.name='React']",
627
633
  message: "Do not use `React.*`. Use named imports instead.",
628
634
  },
635
+ {
636
+ selector: "MemberExpression[object.name='ReactDOM']",
637
+ message: "Do not use `ReactDOM.*`. Use named imports instead.",
638
+ },
629
639
  ],
630
640
  "sort-imports": [
631
641
  "error",
@@ -642,15 +652,6 @@ export default [
642
652
  defaultAssignment: false,
643
653
  },
644
654
  ],
645
- "no-warning-comments": [
646
- "warn",
647
- {
648
- terms: [
649
- "todo",
650
- ],
651
- location: "start",
652
- },
653
- ],
654
655
  },
655
656
  },
656
657
  {
@@ -682,6 +683,13 @@ export default [
682
683
  ],
683
684
  message: "Default import from React is not allowed. Use named imports instead.",
684
685
  },
686
+ {
687
+ name: "react-dom",
688
+ importNames: [
689
+ "default",
690
+ ],
691
+ message: "Default import from React DOM is not allowed. Use named imports instead.",
692
+ },
685
693
  {
686
694
  name: "@gooddata/sdk-ui-kit",
687
695
  importNames: [
@@ -1829,205 +1837,12 @@ export default [
1829
1837
  ],
1830
1838
  },
1831
1839
  {
1832
- languageOptions: {
1833
- globals: { ...globals.browser },
1834
- },
1835
- },
1836
- {
1837
- plugins: {
1838
- prettier: plugin0009,
1839
- },
1840
1840
  rules: {
1841
1841
  curly: 0,
1842
1842
  "no-unexpected-multiline": 0,
1843
- "@stylistic/lines-around-comment": 0,
1844
- "@stylistic/max-len": 0,
1845
- "@stylistic/no-confusing-arrow": 0,
1846
- "@stylistic/no-mixed-operators": 0,
1847
- "@stylistic/no-tabs": 0,
1848
- "@stylistic/quotes": 0,
1849
- "@stylistic/js/lines-around-comment": 0,
1850
- "@stylistic/js/max-len": 0,
1851
- "@stylistic/js/no-confusing-arrow": 0,
1852
- "@stylistic/js/no-mixed-operators": 0,
1853
- "@stylistic/js/no-tabs": 0,
1854
- "@stylistic/js/quotes": 0,
1855
- "@stylistic/ts/lines-around-comment": 0,
1856
- "@stylistic/ts/quotes": 0,
1857
1843
  "@typescript-eslint/lines-around-comment": 0,
1858
1844
  "@typescript-eslint/quotes": 0,
1859
- "babel/quotes": 0,
1860
1845
  "unicorn/template-indent": 0,
1861
- "vue/html-self-closing": 0,
1862
- "vue/max-len": 0,
1863
- "@babel/object-curly-spacing": "off",
1864
- "@babel/semi": "off",
1865
- "@stylistic/array-bracket-newline": "off",
1866
- "@stylistic/array-bracket-spacing": "off",
1867
- "@stylistic/array-element-newline": "off",
1868
- "@stylistic/arrow-parens": "off",
1869
- "@stylistic/arrow-spacing": "off",
1870
- "@stylistic/block-spacing": "off",
1871
- "@stylistic/brace-style": "off",
1872
- "@stylistic/comma-dangle": "off",
1873
- "@stylistic/comma-spacing": "off",
1874
- "@stylistic/comma-style": "off",
1875
- "@stylistic/computed-property-spacing": "off",
1876
- "@stylistic/dot-location": "off",
1877
- "@stylistic/eol-last": "off",
1878
- "@stylistic/func-call-spacing": "off",
1879
- "@stylistic/function-call-argument-newline": "off",
1880
- "@stylistic/function-call-spacing": "off",
1881
- "@stylistic/function-paren-newline": "off",
1882
- "@stylistic/generator-star-spacing": "off",
1883
- "@stylistic/implicit-arrow-linebreak": "off",
1884
- "@stylistic/indent": "off",
1885
- "@stylistic/jsx-quotes": "off",
1886
- "@stylistic/key-spacing": "off",
1887
- "@stylistic/keyword-spacing": "off",
1888
- "@stylistic/linebreak-style": "off",
1889
- "@stylistic/max-statements-per-line": "off",
1890
- "@stylistic/multiline-ternary": "off",
1891
- "@stylistic/new-parens": "off",
1892
- "@stylistic/newline-per-chained-call": "off",
1893
- "@stylistic/no-extra-parens": "off",
1894
- "@stylistic/no-extra-semi": "off",
1895
- "@stylistic/no-floating-decimal": "off",
1896
- "@stylistic/no-mixed-spaces-and-tabs": "off",
1897
- "@stylistic/no-multi-spaces": "off",
1898
- "@stylistic/no-multiple-empty-lines": "off",
1899
- "@stylistic/no-trailing-spaces": "off",
1900
- "@stylistic/no-whitespace-before-property": "off",
1901
- "@stylistic/nonblock-statement-body-position": "off",
1902
- "@stylistic/object-curly-newline": "off",
1903
- "@stylistic/object-curly-spacing": "off",
1904
- "@stylistic/object-property-newline": "off",
1905
- "@stylistic/one-var-declaration-per-line": "off",
1906
- "@stylistic/operator-linebreak": "off",
1907
- "@stylistic/padded-blocks": "off",
1908
- "@stylistic/quote-props": "off",
1909
- "@stylistic/rest-spread-spacing": "off",
1910
- "@stylistic/semi": "off",
1911
- "@stylistic/semi-spacing": "off",
1912
- "@stylistic/semi-style": "off",
1913
- "@stylistic/space-before-blocks": "off",
1914
- "@stylistic/space-before-function-paren": "off",
1915
- "@stylistic/space-in-parens": "off",
1916
- "@stylistic/space-infix-ops": "off",
1917
- "@stylistic/space-unary-ops": "off",
1918
- "@stylistic/switch-colon-spacing": "off",
1919
- "@stylistic/template-curly-spacing": "off",
1920
- "@stylistic/template-tag-spacing": "off",
1921
- "@stylistic/wrap-iife": "off",
1922
- "@stylistic/wrap-regex": "off",
1923
- "@stylistic/yield-star-spacing": "off",
1924
- "@stylistic/member-delimiter-style": "off",
1925
- "@stylistic/type-annotation-spacing": "off",
1926
- "@stylistic/jsx-child-element-spacing": "off",
1927
- "@stylistic/jsx-closing-bracket-location": "off",
1928
- "@stylistic/jsx-closing-tag-location": "off",
1929
- "@stylistic/jsx-curly-newline": "off",
1930
- "@stylistic/jsx-curly-spacing": "off",
1931
- "@stylistic/jsx-equals-spacing": "off",
1932
- "@stylistic/jsx-first-prop-new-line": "off",
1933
- "@stylistic/jsx-indent": "off",
1934
- "@stylistic/jsx-indent-props": "off",
1935
- "@stylistic/jsx-max-props-per-line": "off",
1936
- "@stylistic/jsx-newline": "off",
1937
- "@stylistic/jsx-one-expression-per-line": "off",
1938
- "@stylistic/jsx-props-no-multi-spaces": "off",
1939
- "@stylistic/jsx-tag-spacing": "off",
1940
- "@stylistic/jsx-wrap-multilines": "off",
1941
- "@stylistic/indent-binary-ops": "off",
1942
- "@stylistic/type-generic-spacing": "off",
1943
- "@stylistic/type-named-tuple-spacing": "off",
1944
- "@stylistic/js/array-bracket-newline": "off",
1945
- "@stylistic/js/array-bracket-spacing": "off",
1946
- "@stylistic/js/array-element-newline": "off",
1947
- "@stylistic/js/arrow-parens": "off",
1948
- "@stylistic/js/arrow-spacing": "off",
1949
- "@stylistic/js/block-spacing": "off",
1950
- "@stylistic/js/brace-style": "off",
1951
- "@stylistic/js/comma-dangle": "off",
1952
- "@stylistic/js/comma-spacing": "off",
1953
- "@stylistic/js/comma-style": "off",
1954
- "@stylistic/js/computed-property-spacing": "off",
1955
- "@stylistic/js/dot-location": "off",
1956
- "@stylistic/js/eol-last": "off",
1957
- "@stylistic/js/func-call-spacing": "off",
1958
- "@stylistic/js/function-call-argument-newline": "off",
1959
- "@stylistic/js/function-call-spacing": "off",
1960
- "@stylistic/js/function-paren-newline": "off",
1961
- "@stylistic/js/generator-star-spacing": "off",
1962
- "@stylistic/js/implicit-arrow-linebreak": "off",
1963
- "@stylistic/js/indent": "off",
1964
- "@stylistic/js/jsx-quotes": "off",
1965
- "@stylistic/js/key-spacing": "off",
1966
- "@stylistic/js/keyword-spacing": "off",
1967
- "@stylistic/js/linebreak-style": "off",
1968
- "@stylistic/js/max-statements-per-line": "off",
1969
- "@stylistic/js/multiline-ternary": "off",
1970
- "@stylistic/js/new-parens": "off",
1971
- "@stylistic/js/newline-per-chained-call": "off",
1972
- "@stylistic/js/no-extra-parens": "off",
1973
- "@stylistic/js/no-extra-semi": "off",
1974
- "@stylistic/js/no-floating-decimal": "off",
1975
- "@stylistic/js/no-mixed-spaces-and-tabs": "off",
1976
- "@stylistic/js/no-multi-spaces": "off",
1977
- "@stylistic/js/no-multiple-empty-lines": "off",
1978
- "@stylistic/js/no-trailing-spaces": "off",
1979
- "@stylistic/js/no-whitespace-before-property": "off",
1980
- "@stylistic/js/nonblock-statement-body-position": "off",
1981
- "@stylistic/js/object-curly-newline": "off",
1982
- "@stylistic/js/object-curly-spacing": "off",
1983
- "@stylistic/js/object-property-newline": "off",
1984
- "@stylistic/js/one-var-declaration-per-line": "off",
1985
- "@stylistic/js/operator-linebreak": "off",
1986
- "@stylistic/js/padded-blocks": "off",
1987
- "@stylistic/js/quote-props": "off",
1988
- "@stylistic/js/rest-spread-spacing": "off",
1989
- "@stylistic/js/semi": "off",
1990
- "@stylistic/js/semi-spacing": "off",
1991
- "@stylistic/js/semi-style": "off",
1992
- "@stylistic/js/space-before-blocks": "off",
1993
- "@stylistic/js/space-before-function-paren": "off",
1994
- "@stylistic/js/space-in-parens": "off",
1995
- "@stylistic/js/space-infix-ops": "off",
1996
- "@stylistic/js/space-unary-ops": "off",
1997
- "@stylistic/js/switch-colon-spacing": "off",
1998
- "@stylistic/js/template-curly-spacing": "off",
1999
- "@stylistic/js/template-tag-spacing": "off",
2000
- "@stylistic/js/wrap-iife": "off",
2001
- "@stylistic/js/wrap-regex": "off",
2002
- "@stylistic/js/yield-star-spacing": "off",
2003
- "@stylistic/ts/block-spacing": "off",
2004
- "@stylistic/ts/brace-style": "off",
2005
- "@stylistic/ts/comma-dangle": "off",
2006
- "@stylistic/ts/comma-spacing": "off",
2007
- "@stylistic/ts/func-call-spacing": "off",
2008
- "@stylistic/ts/function-call-spacing": "off",
2009
- "@stylistic/ts/indent": "off",
2010
- "@stylistic/ts/key-spacing": "off",
2011
- "@stylistic/ts/keyword-spacing": "off",
2012
- "@stylistic/ts/member-delimiter-style": "off",
2013
- "@stylistic/ts/no-extra-parens": "off",
2014
- "@stylistic/ts/no-extra-semi": "off",
2015
- "@stylistic/ts/object-curly-spacing": "off",
2016
- "@stylistic/ts/semi": "off",
2017
- "@stylistic/ts/space-before-blocks": "off",
2018
- "@stylistic/ts/space-before-function-paren": "off",
2019
- "@stylistic/ts/space-infix-ops": "off",
2020
- "@stylistic/ts/type-annotation-spacing": "off",
2021
- "@stylistic/jsx/jsx-child-element-spacing": "off",
2022
- "@stylistic/jsx/jsx-closing-bracket-location": "off",
2023
- "@stylistic/jsx/jsx-closing-tag-location": "off",
2024
- "@stylistic/jsx/jsx-curly-newline": "off",
2025
- "@stylistic/jsx/jsx-curly-spacing": "off",
2026
- "@stylistic/jsx/jsx-equals-spacing": "off",
2027
- "@stylistic/jsx/jsx-first-prop-new-line": "off",
2028
- "@stylistic/jsx/jsx-indent": "off",
2029
- "@stylistic/jsx/jsx-indent-props": "off",
2030
- "@stylistic/jsx/jsx-max-props-per-line": "off",
2031
1846
  "@typescript-eslint/block-spacing": "off",
2032
1847
  "@typescript-eslint/brace-style": "off",
2033
1848
  "@typescript-eslint/comma-dangle": "off",
@@ -2045,19 +1860,6 @@ export default [
2045
1860
  "@typescript-eslint/space-before-function-paren": "off",
2046
1861
  "@typescript-eslint/space-infix-ops": "off",
2047
1862
  "@typescript-eslint/type-annotation-spacing": "off",
2048
- "babel/object-curly-spacing": "off",
2049
- "babel/semi": "off",
2050
- "flowtype/boolean-style": "off",
2051
- "flowtype/delimiter-dangle": "off",
2052
- "flowtype/generic-spacing": "off",
2053
- "flowtype/object-type-curly-spacing": "off",
2054
- "flowtype/object-type-delimiter": "off",
2055
- "flowtype/quotes": "off",
2056
- "flowtype/semi": "off",
2057
- "flowtype/space-after-type-colon": "off",
2058
- "flowtype/space-before-generic-bracket": "off",
2059
- "flowtype/space-before-type-colon": "off",
2060
- "flowtype/union-intersection-spacing": "off",
2061
1863
  "react/jsx-child-element-spacing": "off",
2062
1864
  "react/jsx-closing-bracket-location": "off",
2063
1865
  "react/jsx-closing-tag-location": "off",
@@ -2073,130 +1875,14 @@ export default [
2073
1875
  "react/jsx-props-no-multi-spaces": "off",
2074
1876
  "react/jsx-tag-spacing": "off",
2075
1877
  "react/jsx-wrap-multilines": "off",
2076
- "standard/array-bracket-even-spacing": "off",
2077
- "standard/computed-property-even-spacing": "off",
2078
- "standard/object-curly-even-spacing": "off",
2079
1878
  "unicorn/empty-brace-spaces": "off",
2080
1879
  "unicorn/no-nested-ternary": "off",
2081
1880
  "unicorn/number-literal-case": "off",
2082
- "vue/array-bracket-newline": "off",
2083
- "vue/array-bracket-spacing": "off",
2084
- "vue/array-element-newline": "off",
2085
- "vue/arrow-spacing": "off",
2086
- "vue/block-spacing": "off",
2087
- "vue/block-tag-newline": "off",
2088
- "vue/brace-style": "off",
2089
- "vue/comma-dangle": "off",
2090
- "vue/comma-spacing": "off",
2091
- "vue/comma-style": "off",
2092
- "vue/dot-location": "off",
2093
- "vue/func-call-spacing": "off",
2094
- "vue/html-closing-bracket-newline": "off",
2095
- "vue/html-closing-bracket-spacing": "off",
2096
- "vue/html-end-tags": "off",
2097
- "vue/html-indent": "off",
2098
- "vue/html-quotes": "off",
2099
- "vue/key-spacing": "off",
2100
- "vue/keyword-spacing": "off",
2101
- "vue/max-attributes-per-line": "off",
2102
- "vue/multiline-html-element-content-newline": "off",
2103
- "vue/multiline-ternary": "off",
2104
- "vue/mustache-interpolation-spacing": "off",
2105
- "vue/no-extra-parens": "off",
2106
- "vue/no-multi-spaces": "off",
2107
- "vue/no-spaces-around-equal-signs-in-attribute": "off",
2108
- "vue/object-curly-newline": "off",
2109
- "vue/object-curly-spacing": "off",
2110
- "vue/object-property-newline": "off",
2111
- "vue/operator-linebreak": "off",
2112
- "vue/quote-props": "off",
2113
- "vue/script-indent": "off",
2114
- "vue/singleline-html-element-content-newline": "off",
2115
- "vue/space-in-parens": "off",
2116
- "vue/space-infix-ops": "off",
2117
- "vue/space-unary-ops": "off",
2118
- "vue/template-curly-spacing": "off",
2119
- "space-unary-word-ops": "off",
2120
- "generator-star": "off",
2121
- "no-comma-dangle": "off",
2122
- "no-reserved-keys": "off",
2123
- "no-space-before-semi": "off",
2124
- "no-wrap-func": "off",
2125
- "space-after-function-name": "off",
2126
- "space-before-function-parentheses": "off",
2127
- "space-in-brackets": "off",
2128
- "no-arrow-condition": "off",
2129
- "space-after-keywords": "off",
2130
- "space-before-keywords": "off",
2131
- "space-return-throw-case": "off",
2132
- "no-spaced-func": "off",
2133
- "indent-legacy": "off",
2134
- "array-bracket-newline": "off",
2135
- "array-bracket-spacing": "off",
2136
- "array-element-newline": "off",
2137
- "arrow-parens": "off",
2138
- "arrow-spacing": "off",
2139
- "block-spacing": "off",
2140
- "brace-style": "off",
2141
- "comma-dangle": "off",
2142
- "comma-spacing": "off",
2143
- "comma-style": "off",
2144
- "computed-property-spacing": "off",
2145
- "dot-location": "off",
2146
- "eol-last": "off",
2147
- "func-call-spacing": "off",
2148
- "function-call-argument-newline": "off",
2149
- "function-paren-newline": "off",
2150
- "generator-star-spacing": "off",
2151
- "implicit-arrow-linebreak": "off",
2152
- indent: "off",
2153
- "jsx-quotes": "off",
2154
- "key-spacing": "off",
2155
- "keyword-spacing": "off",
2156
- "linebreak-style": "off",
2157
- "lines-around-comment": 0,
2158
- "max-len": 0,
2159
- "max-statements-per-line": "off",
2160
- "multiline-ternary": "off",
2161
- "new-parens": "off",
2162
- "newline-per-chained-call": "off",
2163
- "no-confusing-arrow": 0,
2164
- "no-extra-parens": "off",
2165
- "no-extra-semi": "off",
2166
- "no-floating-decimal": "off",
2167
- "no-mixed-operators": 0,
2168
- "no-mixed-spaces-and-tabs": "off",
2169
- "no-multi-spaces": "off",
2170
- "no-multiple-empty-lines": "off",
2171
- "no-tabs": 0,
2172
- "no-trailing-spaces": "off",
2173
- "no-whitespace-before-property": "off",
2174
- "nonblock-statement-body-position": "off",
2175
- "object-curly-newline": "off",
2176
- "object-curly-spacing": "off",
2177
- "object-property-newline": "off",
2178
- "one-var-declaration-per-line": "off",
2179
- "operator-linebreak": "off",
2180
- "padded-blocks": "off",
2181
- "quote-props": "off",
2182
- quotes: 0,
2183
- "rest-spread-spacing": "off",
2184
- semi: "off",
2185
- "semi-spacing": "off",
2186
- "semi-style": "off",
2187
- "space-before-blocks": "off",
2188
- "space-before-function-paren": "off",
2189
- "space-in-parens": "off",
2190
- "space-infix-ops": "off",
2191
- "space-unary-ops": "off",
2192
- "switch-colon-spacing": "off",
2193
- "template-curly-spacing": "off",
2194
- "template-tag-spacing": "off",
2195
- "wrap-iife": "off",
2196
- "wrap-regex": "off",
2197
- "yield-star-spacing": "off",
2198
- "react/jsx-space-before-closing": "off",
2199
- "prettier/prettier": "error",
1881
+ },
1882
+ },
1883
+ {
1884
+ languageOptions: {
1885
+ globals: { ...globals.browser },
2200
1886
  },
2201
1887
  },
2202
1888
  ];
package/dist/browser.json CHANGED
@@ -10,8 +10,7 @@
10
10
  "eslint:recommended",
11
11
  "plugin:import-x/recommended",
12
12
  "plugin:regexp/recommended",
13
- "plugin:sonarjs/recommended-legacy",
14
- "plugin:prettier/recommended"
13
+ "plugin:sonarjs/recommended-legacy"
15
14
  ],
16
15
  "rules": {
17
16
  "no-console": [
@@ -52,6 +51,13 @@
52
51
  ],
53
52
  "message": "Default import from React is not allowed. Use named imports instead."
54
53
  },
54
+ {
55
+ "name": "react-dom",
56
+ "importNames": [
57
+ "default"
58
+ ],
59
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
60
+ },
55
61
  {
56
62
  "name": "@gooddata/sdk-ui-kit",
57
63
  "importNames": [
@@ -559,6 +565,10 @@
559
565
  {
560
566
  "selector": "MemberExpression[object.name='React']",
561
567
  "message": "Do not use `React.*`. Use named imports instead."
568
+ },
569
+ {
570
+ "selector": "MemberExpression[object.name='ReactDOM']",
571
+ "message": "Do not use `ReactDOM.*`. Use named imports instead."
562
572
  }
563
573
  ],
564
574
  "sort-imports": [
@@ -578,16 +588,7 @@
578
588
  }
579
589
  ],
580
590
  "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
- ],
591
+ "no-unexpected-multiline": 0,
591
592
  "header/header": [
592
593
  2,
593
594
  "line",
@@ -714,7 +715,46 @@
714
715
  "no-caller": 2,
715
716
  "no-eval": 2,
716
717
  "no-delete-var": 2,
717
- "no-octal-escape": 2
718
+ "no-octal-escape": 2,
719
+ "curly": 0,
720
+ "@typescript-eslint/lines-around-comment": 0,
721
+ "@typescript-eslint/quotes": 0,
722
+ "unicorn/template-indent": 0,
723
+ "@typescript-eslint/block-spacing": "off",
724
+ "@typescript-eslint/brace-style": "off",
725
+ "@typescript-eslint/comma-dangle": "off",
726
+ "@typescript-eslint/comma-spacing": "off",
727
+ "@typescript-eslint/func-call-spacing": "off",
728
+ "@typescript-eslint/indent": "off",
729
+ "@typescript-eslint/key-spacing": "off",
730
+ "@typescript-eslint/keyword-spacing": "off",
731
+ "@typescript-eslint/member-delimiter-style": "off",
732
+ "@typescript-eslint/no-extra-parens": "off",
733
+ "@typescript-eslint/no-extra-semi": "off",
734
+ "@typescript-eslint/object-curly-spacing": "off",
735
+ "@typescript-eslint/semi": "off",
736
+ "@typescript-eslint/space-before-blocks": "off",
737
+ "@typescript-eslint/space-before-function-paren": "off",
738
+ "@typescript-eslint/space-infix-ops": "off",
739
+ "@typescript-eslint/type-annotation-spacing": "off",
740
+ "react/jsx-child-element-spacing": "off",
741
+ "react/jsx-closing-bracket-location": "off",
742
+ "react/jsx-closing-tag-location": "off",
743
+ "react/jsx-curly-newline": "off",
744
+ "react/jsx-curly-spacing": "off",
745
+ "react/jsx-equals-spacing": "off",
746
+ "react/jsx-first-prop-new-line": "off",
747
+ "react/jsx-indent": "off",
748
+ "react/jsx-indent-props": "off",
749
+ "react/jsx-max-props-per-line": "off",
750
+ "react/jsx-newline": "off",
751
+ "react/jsx-one-expression-per-line": "off",
752
+ "react/jsx-props-no-multi-spaces": "off",
753
+ "react/jsx-tag-spacing": "off",
754
+ "react/jsx-wrap-multilines": "off",
755
+ "unicorn/empty-brace-spaces": "off",
756
+ "unicorn/no-nested-ternary": "off",
757
+ "unicorn/number-literal-case": "off"
718
758
  },
719
759
  "overrides": [
720
760
  {
@@ -746,6 +786,13 @@
746
786
  ],
747
787
  "message": "Default import from React is not allowed. Use named imports instead."
748
788
  },
789
+ {
790
+ "name": "react-dom",
791
+ "importNames": [
792
+ "default"
793
+ ],
794
+ "message": "Default import from React DOM is not allowed. Use named imports instead."
795
+ },
749
796
  {
750
797
  "name": "@gooddata/sdk-ui-kit",
751
798
  "importNames": [