eslint-config-setup 0.3.2 → 0.4.0
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 +6 -0
- package/dist/configs/0b23ff88.js +138 -24
- package/dist/configs/12c62446.js +155 -9
- package/dist/configs/196d687e.js +281 -47
- package/dist/configs/1c3f743c.js +157 -9
- package/dist/configs/2f6f3a82.js +303 -39
- package/dist/configs/4eb62e57.js +140 -21
- package/dist/configs/52762a42.js +278 -34
- package/dist/configs/532f50a4.js +476 -49
- package/dist/configs/5a302873.js +301 -39
- package/dist/configs/6bc0d588.js +442 -57
- package/dist/configs/91e82988.js +478 -49
- package/dist/configs/c2fecd3d.js +280 -31
- package/dist/configs/cde010b4.js +309 -16
- package/dist/configs/d537b683.js +444 -54
- package/dist/configs/db69ebb6.js +283 -44
- package/dist/configs/e4b137fa.js +307 -16
- package/dist/index.d.ts +13 -13
- package/dist/index.js +65 -67
- package/dist/index.js.map +1 -1
- package/dist/modules.d.ts +39 -40
- package/dist/modules.js +1136 -1105
- package/dist/modules.js.map +1 -1
- package/dist/oxlint-configs/3047b7d6.json +243 -148
- package/dist/oxlint-configs/58d5e03b.json +242 -148
- package/dist/oxlint-configs/78b40daa.json +274 -158
- package/dist/oxlint-configs/7ff0d87e.json +326 -244
- package/dist/oxlint-configs/85912bf0.json +326 -243
- package/dist/oxlint-configs/9dc42dc3.json +273 -158
- package/dist/oxlint-configs/d46cb9b7.json +351 -246
- package/dist/oxlint-configs/ef643c60.json +352 -246
- package/dist/{types-CAUUIuJR.d.ts → types-CAO1PbsB.d.ts} +7 -7
- package/package.json +32 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type ConfigOptions = {
|
|
4
4
|
/** Enable React 19+ rules via `@eslint-react` (Hooks, DOM, Web API leaks, JSX-A11y) */
|
|
5
5
|
react?: boolean;
|
|
6
6
|
/** Enable Node.js-specific rules and globals */
|
|
@@ -9,10 +9,10 @@ interface ConfigOptions {
|
|
|
9
9
|
ai?: boolean;
|
|
10
10
|
/** Disable rules already covered by OxLint (use with oxlint && eslint) */
|
|
11
11
|
oxlint?: boolean;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
/** Options for pre-generated OxLint configs (oxlint flag is irrelevant here). */
|
|
14
14
|
type OxlintConfigOptions = Omit<ConfigOptions, "oxlint">;
|
|
15
|
-
|
|
15
|
+
type OxlintConfigResult = {
|
|
16
16
|
$schema?: string;
|
|
17
17
|
plugins?: string[];
|
|
18
18
|
categories?: Record<string, string>;
|
|
@@ -23,12 +23,12 @@ interface OxlintConfigResult {
|
|
|
23
23
|
files: string[];
|
|
24
24
|
rules?: Record<string, unknown>;
|
|
25
25
|
}>;
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
type FlatConfigArray = Linter.Config[];
|
|
28
28
|
type RuleSeverity = "error" | "off" | "warn";
|
|
29
29
|
type RuleScope = "configs" | "declarations" | "e2e" | "scripts" | "stories" | "tests";
|
|
30
|
-
|
|
30
|
+
type RuleOptions = {
|
|
31
31
|
scope?: RuleScope;
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
33
|
|
|
34
|
-
export type { ConfigOptions as C, FlatConfigArray as F, OxlintConfigOptions as O, RuleSeverity as R,
|
|
34
|
+
export type { ConfigOptions as C, FlatConfigArray as F, OxlintConfigOptions as O, RuleSeverity as R, RuleOptions as a, OxlintConfigResult as b, RuleScope as c };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-setup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Pre-generated, permutation-based ESLint flat configs for modern TypeScript & React projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,48 +65,49 @@
|
|
|
65
65
|
"typescript": ">= 5.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@cspell/eslint-plugin": "^
|
|
68
|
+
"@cspell/eslint-plugin": "^10.0.0",
|
|
69
|
+
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
69
70
|
"@eslint/js": "^10.0.1",
|
|
70
|
-
"@eslint/json": "^1.0
|
|
71
|
-
"@
|
|
72
|
-
"eslint-plugin
|
|
71
|
+
"@eslint/json": "^1.2.0",
|
|
72
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
73
|
+
"@vitest/eslint-plugin": "^1.6.16",
|
|
73
74
|
"eslint-config-prettier": "^10.1.8",
|
|
75
|
+
"eslint-plugin-compat": "^7.0.1",
|
|
74
76
|
"eslint-plugin-de-morgan": "^2.1.1",
|
|
75
|
-
"eslint-plugin-import-x": "^4.16.
|
|
76
|
-
"eslint-plugin-jsdoc": "^62.
|
|
77
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
78
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
77
79
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
78
80
|
"eslint-plugin-mdx": "^3.7.0",
|
|
79
81
|
"eslint-plugin-n": "^17.24.0",
|
|
80
|
-
"eslint-plugin-oxlint": "^1.
|
|
81
|
-
"eslint-plugin-package-json": "^0.
|
|
82
|
-
"eslint-plugin-perfectionist": "^5.
|
|
83
|
-
"eslint-plugin-playwright": "^2.
|
|
84
|
-
"
|
|
85
|
-
"@stylistic/eslint-plugin": "^4.2.0",
|
|
86
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
82
|
+
"eslint-plugin-oxlint": "^1.61.0",
|
|
83
|
+
"eslint-plugin-package-json": "^0.91.1",
|
|
84
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
85
|
+
"eslint-plugin-playwright": "^2.10.2",
|
|
86
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
87
87
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
88
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.
|
|
89
|
-
"eslint-plugin-regexp": "^3.
|
|
88
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.3",
|
|
89
|
+
"eslint-plugin-regexp": "^3.1.0",
|
|
90
90
|
"eslint-plugin-security": "^4.0.0",
|
|
91
|
-
"eslint-plugin-sonarjs": "^4.0.
|
|
92
|
-
"eslint-plugin-storybook": "^10.
|
|
93
|
-
"eslint-plugin-testing-library": "^7.16.
|
|
94
|
-
"eslint-plugin-unicorn": "^
|
|
91
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
92
|
+
"eslint-plugin-storybook": "^10.3.5",
|
|
93
|
+
"eslint-plugin-testing-library": "^7.16.2",
|
|
94
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
95
95
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
96
|
-
"globals": "^17.
|
|
97
|
-
"typescript-eslint": "^8.
|
|
96
|
+
"globals": "^17.5.0",
|
|
97
|
+
"typescript-eslint": "^8.59.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@oxlint/migrate": "^1.
|
|
101
|
-
"@types/node": "^25.
|
|
102
|
-
"@types/picomatch": "^4.0.
|
|
103
|
-
"@vitest/coverage-v8": "^4.
|
|
104
|
-
"eslint": "^10.
|
|
105
|
-
"oxlint": "^1.
|
|
106
|
-
"picomatch": "^4.0.
|
|
100
|
+
"@oxlint/migrate": "^1.61.0",
|
|
101
|
+
"@types/node": "^25.6.0",
|
|
102
|
+
"@types/picomatch": "^4.0.3",
|
|
103
|
+
"@vitest/coverage-v8": "^4.1.5",
|
|
104
|
+
"eslint": "^10.2.1",
|
|
105
|
+
"oxlint": "^1.61.0",
|
|
106
|
+
"picomatch": "^4.0.4",
|
|
107
|
+
"storybook": "^10.3.5",
|
|
107
108
|
"tsup": "^8.5.1",
|
|
108
109
|
"tsx": "^4.21.0",
|
|
109
|
-
"typescript": "^
|
|
110
|
-
"vitest": "^4.
|
|
110
|
+
"typescript": "^6.0.3",
|
|
111
|
+
"vitest": "^4.1.5"
|
|
111
112
|
}
|
|
112
113
|
}
|