@theholocron/eslint-config 7.12.0 → 7.13.1
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.
- package/README.md +22 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -67,19 +67,32 @@ import { cypress } from "@theholocron/eslint-config/cypress";
|
|
|
67
67
|
Bundles combine presets and peer plugins into a single import for common project types. Use these when you want a ready-made config with no manual composition:
|
|
68
68
|
|
|
69
69
|
```javascript
|
|
70
|
-
// React app (base + typescript + react + vitest)
|
|
71
|
-
import reactApp from "@theholocron/eslint-config/bundles/react-app";
|
|
72
|
-
export default reactApp();
|
|
70
|
+
// React app (base + typescript + react + storybook + vitest)
|
|
71
|
+
import { reactApp } from "@theholocron/eslint-config/bundles/react-app";
|
|
72
|
+
export default [...reactApp()];
|
|
73
73
|
|
|
74
74
|
// Next.js app (base + typescript + react + next + vitest)
|
|
75
|
-
import nextApp from "@theholocron/eslint-config/bundles/next-app";
|
|
76
|
-
export default nextApp();
|
|
75
|
+
import { nextApp } from "@theholocron/eslint-config/bundles/next-app";
|
|
76
|
+
export default [...nextApp()];
|
|
77
77
|
|
|
78
78
|
// Node.js app or CLI (base + typescript + node + vitest)
|
|
79
|
-
import nodeApp from "@theholocron/eslint-config/bundles/node-app";
|
|
80
|
-
export default nodeApp();
|
|
79
|
+
import { nodeApp } from "@theholocron/eslint-config/bundles/node-app";
|
|
80
|
+
export default [...nodeApp()];
|
|
81
81
|
|
|
82
82
|
// Publishable library (base + typescript + vitest)
|
|
83
|
-
import library from "@theholocron/eslint-config/bundles/library";
|
|
84
|
-
export default library();
|
|
83
|
+
import { library } from "@theholocron/eslint-config/bundles/library";
|
|
84
|
+
export default [...library()];
|
|
85
85
|
```
|
|
86
|
+
|
|
87
|
+
Add project-specific configs after the bundle — they are merged in order:
|
|
88
|
+
|
|
89
|
+
```javascript
|
|
90
|
+
import { reactApp } from "@theholocron/eslint-config/bundles/react-app";
|
|
91
|
+
import { cypress } from "@theholocron/eslint-config/cypress";
|
|
92
|
+
|
|
93
|
+
export default [...reactApp(), ...cypress(), { settings: { react: { version: "detect" } } }];
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## ESLint version
|
|
97
|
+
|
|
98
|
+
Requires ESLint v10. The `react` preset wraps `eslint-plugin-react` with `@eslint/compat`'s `fixupConfigRules` to patch APIs removed in ESLint v10 — no extra config needed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/eslint-config",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.13.1",
|
|
4
4
|
"description": "A ESLint configuration for writing well-formed Javascript within the Galaxy.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/configs/tree/main/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
34
|
"typescript-eslint": "^8.65.0",
|
|
35
35
|
"vitest": "^4.1.10",
|
|
36
|
-
"@theholocron/tsconfig": "7.
|
|
37
|
-
"@theholocron/vitest-config": "7.
|
|
36
|
+
"@theholocron/tsconfig": "7.13.1",
|
|
37
|
+
"@theholocron/vitest-config": "7.13.1"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|