@antfu/eslint-config 7.7.2 → 8.0.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 +1 -1
- package/dist/cli.mjs +8 -13
- package/dist/index.d.mts +410 -490
- package/dist/index.mjs +14 -104
- package/dist/{lib-D3Kr7UIJ.mjs → lib-EoktVv6C.mjs} +2793 -2278
- package/package.json +44 -49
package/README.md
CHANGED
|
@@ -688,7 +688,7 @@ export default antfu({
|
|
|
688
688
|
Running `npx eslint` should prompt you to install the required dependencies, otherwise, you can install them manually:
|
|
689
689
|
|
|
690
690
|
```bash
|
|
691
|
-
npm i -D @eslint-react/eslint-plugin eslint-plugin-react-
|
|
691
|
+
npm i -D @eslint-react/eslint-plugin eslint-plugin-react-refresh
|
|
692
692
|
```
|
|
693
693
|
|
|
694
694
|
#### Next.js
|
package/dist/cli.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { cac } from "cac";
|
|
|
8
8
|
import parse from "parse-gitignore";
|
|
9
9
|
import { execSync } from "node:child_process";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "
|
|
11
|
+
var version = "8.0.0";
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/cli/constants.ts
|
|
14
14
|
const vscodeSettingsString = `
|
|
@@ -103,11 +103,7 @@ const dependenciesMap = {
|
|
|
103
103
|
formatter: ["eslint-plugin-format"],
|
|
104
104
|
formatterAstro: ["prettier-plugin-astro"],
|
|
105
105
|
nextjs: ["@next/eslint-plugin-next"],
|
|
106
|
-
react: [
|
|
107
|
-
"@eslint-react/eslint-plugin",
|
|
108
|
-
"eslint-plugin-react-hooks",
|
|
109
|
-
"eslint-plugin-react-refresh"
|
|
110
|
-
],
|
|
106
|
+
react: ["@eslint-react/eslint-plugin", "eslint-plugin-react-refresh"],
|
|
111
107
|
slidev: ["prettier-plugin-slidev"],
|
|
112
108
|
solid: ["eslint-plugin-solid"],
|
|
113
109
|
svelte: ["eslint-plugin-svelte", "svelte-eslint-parser"],
|
|
@@ -169,17 +165,16 @@ async function updateEslintFiles(result) {
|
|
|
169
165
|
//#endregion
|
|
170
166
|
//#region src/cli/constants-generated.ts
|
|
171
167
|
const versionsMap = {
|
|
172
|
-
"@eslint-react/eslint-plugin": "^
|
|
173
|
-
"@next/eslint-plugin-next": "^16.
|
|
174
|
-
"@unocss/eslint-plugin": "^66.6.
|
|
175
|
-
"astro-eslint-parser": "^1.
|
|
176
|
-
"eslint": "^10.0
|
|
168
|
+
"@eslint-react/eslint-plugin": "^3.0.0",
|
|
169
|
+
"@next/eslint-plugin-next": "^16.2.2",
|
|
170
|
+
"@unocss/eslint-plugin": "^66.6.7",
|
|
171
|
+
"astro-eslint-parser": "^1.4.0",
|
|
172
|
+
"eslint": "^10.1.0",
|
|
177
173
|
"eslint-plugin-astro": "^1.6.0",
|
|
178
174
|
"eslint-plugin-format": "^2.0.1",
|
|
179
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
180
175
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
181
176
|
"eslint-plugin-solid": "^0.14.5",
|
|
182
|
-
"eslint-plugin-svelte": "^3.
|
|
177
|
+
"eslint-plugin-svelte": "^3.16.0",
|
|
183
178
|
"prettier-plugin-astro": "^0.14.1",
|
|
184
179
|
"prettier-plugin-slidev": "^1.0.5",
|
|
185
180
|
"svelte-eslint-parser": "^1.6.0"
|