@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/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2022 GoodData Corporation
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/PACKAGES_V8.md CHANGED
@@ -2,29 +2,26 @@
2
2
 
3
3
  This table shows which packages are required for each configuration.
4
4
 
5
- | Package | base | browser | browser-esm | esm | esm-react | esm-react-cypress | esm-react-vitest | esm-react-vitest-storybook | esm-vitest | prettier | react | react-cypress | react-vitest | vitest |
6
- | --------------------------------- | ------ | ------- | ----------- | ------ | --------- | ----------------- | ---------------- | -------------------------- | ---------- | -------- | ------ | ------------- | ------------ | ------ |
7
- | @testing-library/dom | | | | | | | | 10.4.1 | | | | | | |
8
- | @typescript-eslint/eslint-plugin | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
9
- | @typescript-eslint/parser | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
10
- | @vitest/eslint-plugin | | | | | | | 1.6.6 | 1.6.6 | 1.6.6 | | | | 1.6.6 | 1.6.6 |
11
- | eslint-config-prettier | | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 |
12
- | eslint-import-resolver-typescript | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 |
13
- | eslint-plugin-chai-friendly | | | | | | 1.1.0 | | | | | | 1.1.0 | | |
14
- | eslint-plugin-cypress | | | | | | 3.6.0 | | | | | | 3.6.0 | | |
15
- | eslint-plugin-header | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 |
16
- | eslint-plugin-import-esm | | | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | | | | | |
17
- | eslint-plugin-import-x | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 |
18
- | eslint-plugin-jsdoc | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 |
19
- | eslint-plugin-no-barrel-files | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 |
20
- | eslint-plugin-no-only-tests | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 |
21
- | eslint-plugin-prettier | | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 |
22
- | eslint-plugin-react | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | | 7.37.5 | 7.37.5 | 7.37.5 | |
23
- | eslint-plugin-react-hooks | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | | 5.2.0 | 5.2.0 | 5.2.0 | |
24
- | eslint-plugin-regexp | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 |
25
- | eslint-plugin-sonarjs | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 |
26
- | eslint-plugin-storybook | | | | | | | | 10.1.11 | | | | | | |
27
- | prettier | | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 |
28
- | react | | | | | | | | 19.1.1 | | | | | | |
29
- | react-dom | | | | | | | | 19.1.1 | | | | | | |
30
- | storybook | | | | | | | | ^10.1.11 | | | | | | |
5
+ | Package | base | browser | browser-esm | esm | esm-react | esm-react-cypress | esm-react-vitest | esm-react-vitest-storybook | esm-vitest | react | react-cypress | react-vitest | vitest |
6
+ | --------------------------------- | ------ | ------- | ----------- | ------ | --------- | ----------------- | ---------------- | -------------------------- | ---------- | ------ | ------------- | ------------ | ------ |
7
+ | @testing-library/dom | | | | | | | | 10.4.1 | | | | | |
8
+ | @typescript-eslint/eslint-plugin | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
9
+ | @typescript-eslint/parser | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
10
+ | @vitest/eslint-plugin | | | | | | | 1.6.6 | 1.6.6 | 1.6.6 | | | 1.6.6 | 1.6.6 |
11
+ | eslint-import-resolver-typescript | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 |
12
+ | eslint-plugin-chai-friendly | | | | | | 1.1.0 | | | | | 1.1.0 | | |
13
+ | eslint-plugin-cypress | | | | | | 3.6.0 | | | | | 3.6.0 | | |
14
+ | eslint-plugin-header | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 | 3.1.1 |
15
+ | eslint-plugin-import-esm | | | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | | | | |
16
+ | eslint-plugin-import-x | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 |
17
+ | eslint-plugin-jsdoc | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 |
18
+ | eslint-plugin-no-barrel-files | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 |
19
+ | eslint-plugin-no-only-tests | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 | 2.6.0 |
20
+ | eslint-plugin-react | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | 7.37.5 | 7.37.5 | 7.37.5 | |
21
+ | eslint-plugin-react-hooks | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | 5.2.0 | 5.2.0 | 5.2.0 | |
22
+ | eslint-plugin-regexp | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 | 2.7.0 |
23
+ | eslint-plugin-sonarjs | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 |
24
+ | eslint-plugin-storybook | | | | | | | | 10.1.11 | | | | | |
25
+ | react | | | | | | | | 19.1.1 | | | | | |
26
+ | react-dom | | | | | | | | 19.1.1 | | | | | |
27
+ | storybook | | | | | | | | ^10.1.11 | | | | | |
package/PACKAGES_V9.md CHANGED
@@ -2,32 +2,27 @@
2
2
 
3
3
  This table shows which packages are required for each configuration.
4
4
 
5
- | Package | base | browser | browser-esm | esm | esm-react | esm-react-cypress | esm-react-vitest | esm-react-vitest-storybook | esm-vitest | oxfmt | oxfmt-browser | oxfmt-browser-esm | oxfmt-esm | oxfmt-esm-react | oxfmt-esm-react-cypress | oxfmt-esm-react-vitest | oxfmt-esm-react-vitest-storybook | oxfmt-esm-vitest | oxfmt-react | oxfmt-react-cypress | oxfmt-react-vitest | oxfmt-vitest | prettier | react | react-cypress | react-vitest | vitest |
6
- | --------------------------------- | ------ | ------- | ----------- | ------ | --------- | ----------------- | ---------------- | -------------------------- | ---------- | ------ | ------------- | ----------------- | --------- | --------------- | ----------------------- | ---------------------- | -------------------------------- | ---------------- | ----------- | ------------------- | ------------------ | ------------ | -------- | ------ | ------------- | ------------ | ------ |
7
- | @eslint/js | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 |
8
- | @testing-library/dom | | | | | | | | 10.4.1 | | | | | | | | | 10.4.1 | | | | | | | | | | |
9
- | @typescript-eslint/eslint-plugin | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
10
- | @typescript-eslint/parser | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
11
- | @vitest/eslint-plugin | | | | | | | 1.6.6 | 1.6.6 | 1.6.6 | | | | | | | 1.6.6 | 1.6.6 | 1.6.6 | | | 1.6.6 | 1.6.6 | | | | 1.6.6 | 1.6.6 |
12
- | eslint-config-prettier | | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | | | | | | | | | | | | | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 | 10.1.8 |
13
- | eslint-import-resolver-typescript | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 |
14
- | eslint-plugin-chai-friendly | | | | | | 1.1.0 | | | | | | | | | 1.1.0 | | | | | 1.1.0 | | | | | 1.1.0 | | |
15
- | eslint-plugin-cypress | | | | | | 3.6.0 | | | | | | | | | 3.6.0 | | | | | 3.6.0 | | | | | 3.6.0 | | |
16
- | eslint-plugin-headers | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 |
17
- | eslint-plugin-import-esm | | | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | | | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | | | | | | | | | |
18
- | eslint-plugin-import-x | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 |
19
- | eslint-plugin-jsdoc | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 |
20
- | eslint-plugin-no-barrel-files | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 |
21
- | eslint-plugin-no-only-tests | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 |
22
- | eslint-plugin-oxfmt | | | | | | | | | | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | 0.0.11 | | | | | |
23
- | eslint-plugin-prettier | | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | | | | | | | | | | | | | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 | 5.5.4 |
24
- | eslint-plugin-react | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | 7.37.5 | 7.37.5 | 7.37.5 | | | 7.37.5 | 7.37.5 | 7.37.5 | |
25
- | eslint-plugin-react-hooks | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | 5.2.0 | 5.2.0 | 5.2.0 | | | 5.2.0 | 5.2.0 | 5.2.0 | |
26
- | eslint-plugin-sonarjs | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 |
27
- | eslint-plugin-storybook | | | | | | | | 10.1.11 | | | | | | | | | 10.1.11 | | | | | | | | | | |
28
- | globals | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 |
29
- | oxfmt | | | | | | | | | | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.0 | | | | | |
30
- | prettier | | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | | | | | | | | | | | | | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 | ^3.6.2 |
31
- | react | | | | | | | | 19.1.1 | | | | | | | | | 19.1.1 | | | | | | | | | | |
32
- | react-dom | | | | | | | | 19.1.1 | | | | | | | | | 19.1.1 | | | | | | | | | | |
33
- | storybook | | | | | | | | ^10.1.11 | | | | | | | | | ^10.1.11 | | | | | | | | | | |
5
+ | Package | base | browser | browser-esm | esm | esm-react | esm-react-cypress | esm-react-vitest | esm-react-vitest-storybook | esm-vitest | react | react-cypress | react-vitest | vitest |
6
+ | --------------------------------- | ------ | ------- | ----------- | ------ | --------- | ----------------- | ---------------- | -------------------------- | ---------- | ------ | ------------- | ------------ | ------ |
7
+ | @eslint/js | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 | 9.28.0 |
8
+ | @testing-library/dom | | | | | | | | 10.4.1 | | | | | |
9
+ | @typescript-eslint/eslint-plugin | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
10
+ | @typescript-eslint/parser | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 | 8.52.0 |
11
+ | @vitest/eslint-plugin | | | | | | | 1.6.6 | 1.6.6 | 1.6.6 | | | 1.6.6 | 1.6.6 |
12
+ | eslint-import-resolver-typescript | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 |
13
+ | eslint-plugin-chai-friendly | | | | | | 1.1.0 | | | | | 1.1.0 | | |
14
+ | eslint-plugin-cypress | | | | | | 3.6.0 | | | | | 3.6.0 | | |
15
+ | eslint-plugin-headers | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 |
16
+ | eslint-plugin-import-esm | | | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | 1.2.1 | | | | |
17
+ | eslint-plugin-import-x | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 | 4.16.1 |
18
+ | eslint-plugin-jsdoc | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 | 62.1.0 |
19
+ | eslint-plugin-no-barrel-files | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 | 1.2.2 |
20
+ | eslint-plugin-no-only-tests | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 | 3.3.0 |
21
+ | eslint-plugin-react | | | | | 7.37.5 | 7.37.5 | 7.37.5 | 7.37.5 | | 7.37.5 | 7.37.5 | 7.37.5 | |
22
+ | eslint-plugin-react-hooks | | | | | 5.2.0 | 5.2.0 | 5.2.0 | 5.2.0 | | 5.2.0 | 5.2.0 | 5.2.0 | |
23
+ | eslint-plugin-sonarjs | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 | 3.0.6 |
24
+ | eslint-plugin-storybook | | | | | | | | 10.1.11 | | | | | |
25
+ | globals | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 | 17.2.0 |
26
+ | react | | | | | | | | 19.1.1 | | | | | |
27
+ | react-dom | | | | | | | | 19.1.1 | | | | | |
28
+ | storybook | | | | | | | | ^10.1.11 | | | | | |
package/README.md CHANGED
@@ -338,3 +338,25 @@ interface IConfiguration<RulePrefix extends string = ""> {
338
338
 
339
339
  - The base configuration automatically ignores `**/dist/**/*.*` and `**/esm/**/*.*` files.
340
340
  - **ESM vs ImportESM**: The `esm` configuration sets `parserOptions.sourceType: "module"` to tell the parser to treat files as ES modules. The `importEsm` configuration adds the `eslint-plugin-import-esm` plugin which enforces ESM-specific import rules (e.g., requiring `.js` extensions in imports). Most ESM projects need both.
341
+
342
+ ## Formatting
343
+
344
+ This package is **decoupled from formatters**. The `formatter` configuration (included in all variants by default) disables ESLint rules that conflict with code formatters, allowing you to use any formatter of your choice (Prettier, oxfmt, Biome, etc.) as a separate tool.
345
+
346
+ **How it works:**
347
+
348
+ - ESLint focuses solely on code quality and best practices
349
+ - Formatting rules (indentation, spacing, quotes, etc.) are disabled
350
+ - Run your formatter separately (e.g., `prettier --write` or `oxfmt`)
351
+
352
+ **Recommended setup:**
353
+
354
+ 1. Install your preferred formatter (e.g., `prettier` or `oxfmt`)
355
+ 2. Configure it separately (e.g., `.prettierrc` or `oxfmt.json`)
356
+ 3. Run formatting as a separate step in your workflow or editor
357
+
358
+ This approach provides:
359
+
360
+ - **Flexibility** - Choose any formatter without changing ESLint config
361
+ - **Performance** - Formatters run faster when not piped through ESLint
362
+ - **Clarity** - Clear separation between linting (code quality) and formatting (code style)
package/dist/base.js CHANGED
@@ -117,6 +117,13 @@ export default [
117
117
  ],
118
118
  message: "Default import from React is not allowed. Use named imports instead.",
119
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
+ },
120
127
  {
121
128
  name: "@gooddata/sdk-ui-kit",
122
129
  importNames: [
@@ -625,6 +632,10 @@ export default [
625
632
  selector: "MemberExpression[object.name='React']",
626
633
  message: "Do not use `React.*`. Use named imports instead.",
627
634
  },
635
+ {
636
+ selector: "MemberExpression[object.name='ReactDOM']",
637
+ message: "Do not use `ReactDOM.*`. Use named imports instead.",
638
+ },
628
639
  ],
629
640
  "sort-imports": [
630
641
  "error",
@@ -641,15 +652,6 @@ export default [
641
652
  defaultAssignment: false,
642
653
  },
643
654
  ],
644
- "no-warning-comments": [
645
- "warn",
646
- {
647
- terms: [
648
- "todo",
649
- ],
650
- location: "start",
651
- },
652
- ],
653
655
  },
654
656
  },
655
657
  {
@@ -681,6 +683,13 @@ export default [
681
683
  ],
682
684
  message: "Default import from React is not allowed. Use named imports instead.",
683
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
+ },
684
693
  {
685
694
  name: "@gooddata/sdk-ui-kit",
686
695
  importNames: [
@@ -1827,4 +1836,48 @@ export default [
1827
1836
  "**/temp/**",
1828
1837
  ],
1829
1838
  },
1839
+ {
1840
+ rules: {
1841
+ curly: 0,
1842
+ "no-unexpected-multiline": 0,
1843
+ "@typescript-eslint/lines-around-comment": 0,
1844
+ "@typescript-eslint/quotes": 0,
1845
+ "unicorn/template-indent": 0,
1846
+ "@typescript-eslint/block-spacing": "off",
1847
+ "@typescript-eslint/brace-style": "off",
1848
+ "@typescript-eslint/comma-dangle": "off",
1849
+ "@typescript-eslint/comma-spacing": "off",
1850
+ "@typescript-eslint/func-call-spacing": "off",
1851
+ "@typescript-eslint/indent": "off",
1852
+ "@typescript-eslint/key-spacing": "off",
1853
+ "@typescript-eslint/keyword-spacing": "off",
1854
+ "@typescript-eslint/member-delimiter-style": "off",
1855
+ "@typescript-eslint/no-extra-parens": "off",
1856
+ "@typescript-eslint/no-extra-semi": "off",
1857
+ "@typescript-eslint/object-curly-spacing": "off",
1858
+ "@typescript-eslint/semi": "off",
1859
+ "@typescript-eslint/space-before-blocks": "off",
1860
+ "@typescript-eslint/space-before-function-paren": "off",
1861
+ "@typescript-eslint/space-infix-ops": "off",
1862
+ "@typescript-eslint/type-annotation-spacing": "off",
1863
+ "react/jsx-child-element-spacing": "off",
1864
+ "react/jsx-closing-bracket-location": "off",
1865
+ "react/jsx-closing-tag-location": "off",
1866
+ "react/jsx-curly-newline": "off",
1867
+ "react/jsx-curly-spacing": "off",
1868
+ "react/jsx-equals-spacing": "off",
1869
+ "react/jsx-first-prop-new-line": "off",
1870
+ "react/jsx-indent": "off",
1871
+ "react/jsx-indent-props": "off",
1872
+ "react/jsx-max-props-per-line": "off",
1873
+ "react/jsx-newline": "off",
1874
+ "react/jsx-one-expression-per-line": "off",
1875
+ "react/jsx-props-no-multi-spaces": "off",
1876
+ "react/jsx-tag-spacing": "off",
1877
+ "react/jsx-wrap-multilines": "off",
1878
+ "unicorn/empty-brace-spaces": "off",
1879
+ "unicorn/no-nested-ternary": "off",
1880
+ "unicorn/number-literal-case": "off",
1881
+ },
1882
+ },
1830
1883
  ];
package/dist/base.json CHANGED
@@ -51,6 +51,13 @@
51
51
  ],
52
52
  "message": "Default import from React is not allowed. Use named imports instead."
53
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
+ },
54
61
  {
55
62
  "name": "@gooddata/sdk-ui-kit",
56
63
  "importNames": [
@@ -558,6 +565,10 @@
558
565
  {
559
566
  "selector": "MemberExpression[object.name='React']",
560
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."
561
572
  }
562
573
  ],
563
574
  "sort-imports": [
@@ -577,16 +588,7 @@
577
588
  }
578
589
  ],
579
590
  "no-extra-boolean-cast": "error",
580
- "no-unexpected-multiline": "off",
581
- "no-warning-comments": [
582
- "warn",
583
- {
584
- "terms": [
585
- "todo"
586
- ],
587
- "location": "start"
588
- }
589
- ],
591
+ "no-unexpected-multiline": 0,
590
592
  "header/header": [
591
593
  2,
592
594
  "line",
@@ -713,7 +715,46 @@
713
715
  "no-caller": 2,
714
716
  "no-eval": 2,
715
717
  "no-delete-var": 2,
716
- "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"
717
758
  },
718
759
  "overrides": [
719
760
  {
@@ -745,6 +786,13 @@
745
786
  ],
746
787
  "message": "Default import from React is not allowed. Use named imports instead."
747
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
+ },
748
796
  {
749
797
  "name": "@gooddata/sdk-ui-kit",
750
798
  "importNames": [