@theholocron/eslint-config 7.8.1 → 7.9.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 +9 -9
- package/dist/bundles/react-app.d.ts +1 -1
- package/dist/configs/react.d.ts +1 -2
- package/dist/configs/react.js +2 -1
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -5,35 +5,35 @@ A [ESLint configuration](https://eslint.org/docs/latest/use/configure/configurat
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
pnpm add -D @theholocron/eslint-config
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Install only the peer dependencies for the presets you use (all are optional except the core):
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
14
|
# Core (always required)
|
|
15
|
-
|
|
15
|
+
pnpm add -D @eslint/js eslint globals
|
|
16
16
|
|
|
17
17
|
# TypeScript
|
|
18
|
-
|
|
18
|
+
pnpm add -D typescript-eslint
|
|
19
19
|
|
|
20
20
|
# React
|
|
21
|
-
|
|
21
|
+
pnpm add -D eslint-plugin-react
|
|
22
22
|
|
|
23
23
|
# Next.js
|
|
24
|
-
|
|
24
|
+
pnpm add -D @next/eslint-plugin-next
|
|
25
25
|
|
|
26
26
|
# Node.js
|
|
27
|
-
|
|
27
|
+
pnpm add -D eslint-plugin-n
|
|
28
28
|
|
|
29
29
|
# Vitest
|
|
30
|
-
|
|
30
|
+
pnpm add -D @vitest/eslint-plugin
|
|
31
31
|
|
|
32
32
|
# Storybook
|
|
33
|
-
|
|
33
|
+
pnpm add -D eslint-plugin-storybook
|
|
34
34
|
|
|
35
35
|
# Cypress
|
|
36
|
-
|
|
36
|
+
pnpm add -D eslint-plugin-cypress
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Usage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region bundles/react-app.d.ts
|
|
2
|
-
declare function reactApp():
|
|
2
|
+
declare function reactApp(): import("typescript-eslint").CompatibleConfig[];
|
|
3
3
|
//#endregion
|
|
4
4
|
export { reactApp };
|
package/dist/configs/react.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import react from "eslint-plugin-react";
|
|
2
1
|
//#region configs/react.d.ts
|
|
3
|
-
declare function reactConfig():
|
|
2
|
+
declare function reactConfig(): import("@eslint/compat").FixupConfigArray;
|
|
4
3
|
//#endregion
|
|
5
4
|
export { reactConfig as react, reactConfig };
|
package/dist/configs/react.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { fixupConfigRules } from "@eslint/compat";
|
|
1
2
|
import react from "eslint-plugin-react";
|
|
2
3
|
//#region configs/react.ts
|
|
3
4
|
function reactConfig() {
|
|
4
|
-
return [react.configs.flat.recommended, react.configs.flat["jsx-runtime"]];
|
|
5
|
+
return fixupConfigRules([react.configs.flat.recommended, react.configs.flat["jsx-runtime"]]);
|
|
5
6
|
}
|
|
6
7
|
//#endregion
|
|
7
8
|
export { reactConfig as react, reactConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/eslint-config",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.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",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"storybook"
|
|
22
22
|
],
|
|
23
23
|
"type": "module",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@eslint/compat": "^2.1.0"
|
|
26
|
+
},
|
|
24
27
|
"devDependencies": {
|
|
25
28
|
"@eslint/js": "^10.0.0",
|
|
26
29
|
"@vitest/coverage-v8": "^4.1.10",
|
|
@@ -30,8 +33,8 @@
|
|
|
30
33
|
"typescript": "^5.9.3",
|
|
31
34
|
"typescript-eslint": "^8.65.0",
|
|
32
35
|
"vitest": "^4.1.10",
|
|
33
|
-
"@theholocron/tsconfig": "7.
|
|
34
|
-
"@theholocron/vitest-config": "7.
|
|
36
|
+
"@theholocron/tsconfig": "7.9.1",
|
|
37
|
+
"@theholocron/vitest-config": "7.9.1"
|
|
35
38
|
},
|
|
36
39
|
"exports": {
|
|
37
40
|
".": {
|
|
@@ -148,6 +151,7 @@
|
|
|
148
151
|
"scripts": {
|
|
149
152
|
"build": "tsdown",
|
|
150
153
|
"typecheck": "tsc --noEmit",
|
|
151
|
-
"test": "vitest run"
|
|
154
|
+
"test": "vitest run",
|
|
155
|
+
"test:coverage": "vitest run --coverage"
|
|
152
156
|
}
|
|
153
157
|
}
|