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

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 (58) hide show
  1. package/PACKAGES_V8.md +26 -26
  2. package/PACKAGES_V9.md +29 -27
  3. package/dist/base.js +36 -412
  4. package/dist/base.json +30 -8
  5. package/dist/browser-esm.js +405 -414
  6. package/dist/browser-esm.json +32 -9
  7. package/dist/browser.js +403 -412
  8. package/dist/browser.json +32 -9
  9. package/dist/esm-react-cypress.js +413 -422
  10. package/dist/esm-react-cypress.json +30 -8
  11. package/dist/esm-react-vitest-storybook.js +413 -422
  12. package/dist/esm-react-vitest-storybook.json +30 -8
  13. package/dist/esm-react-vitest.js +411 -420
  14. package/dist/esm-react-vitest.json +30 -8
  15. package/dist/esm-react.js +409 -418
  16. package/dist/esm-react.json +30 -8
  17. package/dist/esm-vitest.js +407 -416
  18. package/dist/esm-vitest.json +32 -9
  19. package/dist/esm.js +405 -414
  20. package/dist/esm.json +32 -9
  21. package/dist/oxfmt-browser-esm.d.ts +12 -0
  22. package/dist/oxfmt-browser-esm.js +1859 -0
  23. package/dist/oxfmt-browser.d.ts +12 -0
  24. package/dist/oxfmt-browser.js +1844 -0
  25. package/dist/oxfmt-esm-react-cypress.d.ts +12 -0
  26. package/dist/oxfmt-esm-react-cypress.js +1942 -0
  27. package/dist/oxfmt-esm-react-vitest-storybook.d.ts +12 -0
  28. package/dist/oxfmt-esm-react-vitest-storybook.js +1964 -0
  29. package/dist/oxfmt-esm-react-vitest.d.ts +12 -0
  30. package/dist/oxfmt-esm-react-vitest.js +1930 -0
  31. package/dist/oxfmt-esm-react.d.ts +12 -0
  32. package/dist/oxfmt-esm-react.js +1905 -0
  33. package/dist/oxfmt-esm-vitest.d.ts +12 -0
  34. package/dist/oxfmt-esm-vitest.js +1879 -0
  35. package/dist/oxfmt-esm.d.ts +12 -0
  36. package/dist/oxfmt-esm.js +1854 -0
  37. package/dist/oxfmt-react-cypress.d.ts +12 -0
  38. package/dist/oxfmt-react-cypress.js +1933 -0
  39. package/dist/oxfmt-react-vitest.d.ts +12 -0
  40. package/dist/oxfmt-react-vitest.js +1921 -0
  41. package/dist/oxfmt-react.d.ts +12 -0
  42. package/dist/oxfmt-react.js +1896 -0
  43. package/dist/oxfmt-vitest.d.ts +12 -0
  44. package/dist/oxfmt-vitest.js +2231 -0
  45. package/dist/oxfmt.d.ts +12 -0
  46. package/dist/oxfmt.js +1839 -0
  47. package/dist/prettier.d.ts +12 -0
  48. package/dist/prettier.js +2197 -0
  49. package/dist/prettier.json +1451 -0
  50. package/dist/react-cypress.js +411 -420
  51. package/dist/react-cypress.json +30 -8
  52. package/dist/react-vitest.js +409 -418
  53. package/dist/react-vitest.json +30 -8
  54. package/dist/react.js +407 -416
  55. package/dist/react.json +30 -8
  56. package/dist/vitest.js +771 -414
  57. package/dist/vitest.json +33 -9
  58. package/package.json +49 -7
package/dist/vitest.json CHANGED
@@ -2,18 +2,19 @@
2
2
  "plugins": [
3
3
  "header",
4
4
  "no-barrel-files",
5
- "import",
5
+ "import-x",
6
6
  "no-only-tests",
7
7
  "sonarjs",
8
8
  "@vitest"
9
9
  ],
10
10
  "extends": [
11
11
  "eslint:recommended",
12
- "plugin:import/errors",
13
- "plugin:prettier/recommended",
12
+ "plugin:import-x/recommended",
14
13
  "plugin:regexp/recommended",
15
14
  "plugin:sonarjs/recommended-legacy",
16
- "plugin:@vitest/legacy-recommended"
15
+ "plugin:@vitest/legacy-recommended",
16
+ "plugin:prettier/recommended",
17
+ "plugin:prettier/recommended"
17
18
  ],
18
19
  "rules": {
19
20
  "no-console": [
@@ -599,7 +600,7 @@
599
600
  }
600
601
  ],
601
602
  "no-barrel-files/no-barrel-files": "error",
602
- "import/order": [
603
+ "import-x/order": [
603
604
  "error",
604
605
  {
605
606
  "pathGroups": [
@@ -634,7 +635,7 @@
634
635
  "newlines-between": "always"
635
636
  }
636
637
  ],
637
- "import/no-unassigned-import": "error",
638
+ "import-x/no-unassigned-import": "error",
638
639
  "no-only-tests/no-only-tests": [
639
640
  "error",
640
641
  {
@@ -1395,7 +1396,7 @@
1395
1396
  "**/*.tsx"
1396
1397
  ],
1397
1398
  "extends": [
1398
- "plugin:import/typescript"
1399
+ "plugin:import-x/typescript"
1399
1400
  ]
1400
1401
  },
1401
1402
  {
@@ -1425,13 +1426,36 @@
1425
1426
  }
1426
1427
  }
1427
1428
  ],
1428
- "settings": {},
1429
+ "settings": {
1430
+ "import-x/resolver": {
1431
+ "typescript": {
1432
+ "alwaysTryTypes": true
1433
+ },
1434
+ "node": {
1435
+ "extensions": [
1436
+ ".ts",
1437
+ ".tsx",
1438
+ ".js",
1439
+ ".jsx",
1440
+ ".mjs",
1441
+ ".cjs"
1442
+ ]
1443
+ }
1444
+ }
1445
+ },
1429
1446
  "env": {
1430
1447
  "node": true,
1431
1448
  "es2022": true
1432
1449
  },
1433
1450
  "ignorePatterns": [
1434
1451
  "**/dist/**/*.*",
1435
- "**/esm/**/*.*"
1452
+ "**/esm/**/*.*",
1453
+ "**/node_modules/**/*.*",
1454
+ "**/ci/results/**",
1455
+ "**/__version.ts",
1456
+ "**/cypress/results/**",
1457
+ "**/cypress/screenshots/**",
1458
+ "**/cypress/videos/**",
1459
+ "**/temp/**"
1436
1460
  ]
1437
1461
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/eslint-config",
3
- "version": "11.19.0-alpha.1",
3
+ "version": "11.19.0-alpha.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/gooddata/gooddata-ui-sdk.git",
@@ -63,6 +63,49 @@
63
63
  "import": "./dist/esm-react-vitest-storybook.js",
64
64
  "require": "./dist/esm-react-vitest-storybook.json"
65
65
  },
66
+ "./prettier": {
67
+ "import": "./dist/prettier.js",
68
+ "require": "./dist/prettier.json"
69
+ },
70
+ "./oxfmt-browser": {
71
+ "import": "./dist/oxfmt-browser.js"
72
+ },
73
+ "./oxfmt-browser-esm": {
74
+ "import": "./dist/oxfmt-browser-esm.js"
75
+ },
76
+ "./oxfmt-vitest": {
77
+ "import": "./dist/oxfmt-vitest.js"
78
+ },
79
+ "./oxfmt-esm": {
80
+ "import": "./dist/oxfmt-esm.js"
81
+ },
82
+ "./oxfmt-esm-vitest": {
83
+ "import": "./dist/oxfmt-esm-vitest.js"
84
+ },
85
+ "./oxfmt-react": {
86
+ "import": "./dist/oxfmt-react.js"
87
+ },
88
+ "./oxfmt-react-vitest": {
89
+ "import": "./dist/oxfmt-react-vitest.js"
90
+ },
91
+ "./oxfmt-react-cypress": {
92
+ "import": "./dist/oxfmt-react-cypress.js"
93
+ },
94
+ "./oxfmt-esm-react": {
95
+ "import": "./dist/oxfmt-esm-react.js"
96
+ },
97
+ "./oxfmt-esm-react-cypress": {
98
+ "import": "./dist/oxfmt-esm-react-cypress.js"
99
+ },
100
+ "./oxfmt-esm-react-vitest": {
101
+ "import": "./dist/oxfmt-esm-react-vitest.js"
102
+ },
103
+ "./oxfmt-esm-react-vitest-storybook": {
104
+ "import": "./dist/oxfmt-esm-react-vitest-storybook.js"
105
+ },
106
+ "./oxfmt": {
107
+ "import": "./dist/oxfmt.js"
108
+ },
66
109
  "./tsOverride": {
67
110
  "import": "./dist/tsOverride.js",
68
111
  "require": "./dist/tsOverride.cjs"
@@ -88,11 +131,12 @@
88
131
  "eslint-plugin-chai-friendly": "1.1.0",
89
132
  "eslint-plugin-cypress": "3.6.0",
90
133
  "eslint-plugin-headers": "1.3.3",
91
- "eslint-plugin-import": "2.32.0",
92
134
  "eslint-plugin-import-esm": "1.2.1",
135
+ "eslint-plugin-import-x": "4.16.1",
93
136
  "eslint-plugin-jsdoc": "62.1.0",
94
137
  "eslint-plugin-no-barrel-files": "1.2.2",
95
138
  "eslint-plugin-no-only-tests": "3.3.0",
139
+ "eslint-plugin-oxfmt": "0.0.11",
96
140
  "eslint-plugin-prettier": "5.5.4",
97
141
  "eslint-plugin-react": "7.37.5",
98
142
  "eslint-plugin-react-hooks": "5.2.0",
@@ -100,6 +144,7 @@
100
144
  "eslint-plugin-storybook": "10.1.11",
101
145
  "globals": "17.2.0",
102
146
  "jiti": "2.6.1",
147
+ "oxfmt": "0.27.0",
103
148
  "prettier": "^3.6.2",
104
149
  "react": "19.1.1",
105
150
  "react-dom": "19.1.1",
@@ -111,15 +156,12 @@
111
156
  "@typescript-eslint/eslint-plugin": "8.52.0",
112
157
  "@typescript-eslint/parser": "8.52.0",
113
158
  "eslint": "^8.57.1 || ^9.39.2",
114
- "eslint-config-prettier": "10.1.8",
115
159
  "eslint-import-resolver-typescript": "4.4.4",
116
- "eslint-plugin-import": "2.32.0",
160
+ "eslint-plugin-import-x": "4.16.1",
117
161
  "eslint-plugin-jsdoc": "62.1.0",
118
162
  "eslint-plugin-no-barrel-files": "1.2.2",
119
163
  "eslint-plugin-no-only-tests": "2.6.0 || 3.3.0",
120
- "eslint-plugin-prettier": "5.5.4",
121
- "eslint-plugin-sonarjs": "3.0.6",
122
- "prettier": "^3.6.2"
164
+ "eslint-plugin-sonarjs": "3.0.6"
123
165
  },
124
166
  "scripts": {
125
167
  "_phase:build": "npm run build",