@antfu/eslint-config 3.11.2 → 3.12.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/dist/cli.cjs +37 -37
- package/dist/cli.js +37 -37
- package/dist/index.cjs +11 -7
- package/dist/index.d.cts +399 -148
- package/dist/index.d.ts +399 -148
- package/dist/index.js +10 -6
- package/package.json +37 -37
package/dist/cli.cjs
CHANGED
|
@@ -41,8 +41,8 @@ var import_picocolors = __toESM(require("picocolors"), 1);
|
|
|
41
41
|
var package_default = {
|
|
42
42
|
name: "@antfu/eslint-config",
|
|
43
43
|
type: "module",
|
|
44
|
-
version: "3.
|
|
45
|
-
packageManager: "pnpm@9.
|
|
44
|
+
version: "3.12.1",
|
|
45
|
+
packageManager: "pnpm@9.15.1",
|
|
46
46
|
description: "Anthony's ESLint config",
|
|
47
47
|
author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
48
48
|
license: "MIT",
|
|
@@ -79,7 +79,7 @@ var package_default = {
|
|
|
79
79
|
prepare: "simple-git-hooks"
|
|
80
80
|
},
|
|
81
81
|
peerDependencies: {
|
|
82
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
82
|
+
"@eslint-react/eslint-plugin": "^1.19.0",
|
|
83
83
|
"@prettier/plugin-xml": "^3.4.1",
|
|
84
84
|
"@unocss/eslint-plugin": ">=0.50.0",
|
|
85
85
|
"astro-eslint-parser": "^1.0.2",
|
|
@@ -137,32 +137,32 @@ var package_default = {
|
|
|
137
137
|
},
|
|
138
138
|
dependencies: {
|
|
139
139
|
"@antfu/install-pkg": "^0.5.0",
|
|
140
|
-
"@clack/prompts": "^0.
|
|
140
|
+
"@clack/prompts": "^0.9.0",
|
|
141
141
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
142
142
|
"@eslint/markdown": "^6.2.1",
|
|
143
|
-
"@stylistic/eslint-plugin": "^2.
|
|
144
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
145
|
-
"@typescript-eslint/parser": "^8.
|
|
146
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
143
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
144
|
+
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
145
|
+
"@typescript-eslint/parser": "^8.18.2",
|
|
146
|
+
"@vitest/eslint-plugin": "^1.1.20",
|
|
147
147
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
148
148
|
"eslint-flat-config-utils": "^0.4.0",
|
|
149
149
|
"eslint-merge-processors": "^0.1.0",
|
|
150
150
|
"eslint-plugin-antfu": "^2.7.0",
|
|
151
|
-
"eslint-plugin-command": "^0.2.
|
|
152
|
-
"eslint-plugin-import-x": "^4.
|
|
153
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
151
|
+
"eslint-plugin-command": "^0.2.7",
|
|
152
|
+
"eslint-plugin-import-x": "^4.6.1",
|
|
153
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
154
154
|
"eslint-plugin-jsonc": "^2.18.2",
|
|
155
|
-
"eslint-plugin-n": "^17.
|
|
155
|
+
"eslint-plugin-n": "^17.15.1",
|
|
156
156
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
157
|
-
"eslint-plugin-perfectionist": "^4.
|
|
157
|
+
"eslint-plugin-perfectionist": "^4.4.0",
|
|
158
158
|
"eslint-plugin-regexp": "^2.7.0",
|
|
159
|
-
"eslint-plugin-toml": "^0.
|
|
159
|
+
"eslint-plugin-toml": "^0.12.0",
|
|
160
160
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
161
161
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
162
|
-
"eslint-plugin-vue": "^9.
|
|
163
|
-
"eslint-plugin-yml": "^1.
|
|
162
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
163
|
+
"eslint-plugin-yml": "^1.16.0",
|
|
164
164
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
165
|
-
globals: "^15.
|
|
165
|
+
globals: "^15.14.0",
|
|
166
166
|
"jsonc-eslint-parser": "^2.4.0",
|
|
167
167
|
"local-pkg": "^0.5.1",
|
|
168
168
|
"parse-gitignore": "^2.0.0",
|
|
@@ -174,48 +174,48 @@ var package_default = {
|
|
|
174
174
|
},
|
|
175
175
|
devDependencies: {
|
|
176
176
|
"@antfu/eslint-config": "workspace:*",
|
|
177
|
-
"@antfu/ni": "^0.23.
|
|
178
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
179
|
-
"@eslint/config-inspector": "^0.
|
|
177
|
+
"@antfu/ni": "^0.23.2",
|
|
178
|
+
"@eslint-react/eslint-plugin": "^1.22.1",
|
|
179
|
+
"@eslint/config-inspector": "^0.6.0",
|
|
180
180
|
"@prettier/plugin-xml": "^3.4.1",
|
|
181
|
-
"@stylistic/eslint-plugin-migrate": "^2.
|
|
181
|
+
"@stylistic/eslint-plugin-migrate": "^2.12.1",
|
|
182
182
|
"@types/fs-extra": "^11.0.4",
|
|
183
|
-
"@types/node": "^22.10.
|
|
183
|
+
"@types/node": "^22.10.2",
|
|
184
184
|
"@types/prompts": "^2.4.9",
|
|
185
185
|
"@types/yargs": "^17.0.33",
|
|
186
|
-
"@unocss/eslint-plugin": "^0.
|
|
186
|
+
"@unocss/eslint-plugin": "^0.65.2",
|
|
187
187
|
"astro-eslint-parser": "^1.1.0",
|
|
188
|
-
bumpp: "^9.
|
|
189
|
-
eslint: "^9.
|
|
188
|
+
bumpp: "^9.9.2",
|
|
189
|
+
eslint: "^9.17.0",
|
|
190
190
|
"eslint-plugin-astro": "^1.3.1",
|
|
191
|
-
"eslint-plugin-format": "^0.1.
|
|
192
|
-
"eslint-plugin-react-hooks": "^5.
|
|
193
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
194
|
-
"eslint-plugin-solid": "^0.14.
|
|
195
|
-
"eslint-plugin-svelte": "^2.46.
|
|
191
|
+
"eslint-plugin-format": "^0.1.3",
|
|
192
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
193
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
194
|
+
"eslint-plugin-solid": "^0.14.5",
|
|
195
|
+
"eslint-plugin-svelte": "^2.46.1",
|
|
196
196
|
"eslint-typegen": "^0.3.2",
|
|
197
197
|
esno: "^4.8.0",
|
|
198
|
-
execa: "^9.5.
|
|
198
|
+
execa: "^9.5.2",
|
|
199
199
|
"fast-glob": "^3.3.2",
|
|
200
200
|
"fs-extra": "^11.2.0",
|
|
201
|
-
jiti: "^2.4.
|
|
202
|
-
"lint-staged": "^15.2.
|
|
201
|
+
jiti: "^2.4.2",
|
|
202
|
+
"lint-staged": "^15.2.11",
|
|
203
203
|
"prettier-plugin-astro": "^0.14.1",
|
|
204
204
|
"prettier-plugin-slidev": "^1.0.5",
|
|
205
205
|
rimraf: "^6.0.1",
|
|
206
206
|
"simple-git-hooks": "^2.11.1",
|
|
207
|
-
svelte: "^5.
|
|
207
|
+
svelte: "^5.15.0",
|
|
208
208
|
"svelte-eslint-parser": "^0.43.0",
|
|
209
209
|
tsup: "^8.3.5",
|
|
210
210
|
tsx: "^4.19.2",
|
|
211
211
|
typescript: "^5.7.2",
|
|
212
|
-
vitest: "^2.1.
|
|
212
|
+
vitest: "^2.1.8",
|
|
213
213
|
vue: "^3.5.13"
|
|
214
214
|
},
|
|
215
215
|
resolutions: {
|
|
216
216
|
"@eslint-community/eslint-utils": "^4.4.1",
|
|
217
|
-
"@typescript-eslint/utils": "^8.
|
|
218
|
-
eslint: "^9.
|
|
217
|
+
"@typescript-eslint/utils": "^8.18.2",
|
|
218
|
+
eslint: "^9.17.0",
|
|
219
219
|
tsx: "^4.19.2"
|
|
220
220
|
},
|
|
221
221
|
"simple-git-hooks": {
|
package/dist/cli.js
CHANGED
|
@@ -12,8 +12,8 @@ import c from "picocolors";
|
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@antfu/eslint-config",
|
|
14
14
|
type: "module",
|
|
15
|
-
version: "3.
|
|
16
|
-
packageManager: "pnpm@9.
|
|
15
|
+
version: "3.12.1",
|
|
16
|
+
packageManager: "pnpm@9.15.1",
|
|
17
17
|
description: "Anthony's ESLint config",
|
|
18
18
|
author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
19
19
|
license: "MIT",
|
|
@@ -50,7 +50,7 @@ var package_default = {
|
|
|
50
50
|
prepare: "simple-git-hooks"
|
|
51
51
|
},
|
|
52
52
|
peerDependencies: {
|
|
53
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
53
|
+
"@eslint-react/eslint-plugin": "^1.19.0",
|
|
54
54
|
"@prettier/plugin-xml": "^3.4.1",
|
|
55
55
|
"@unocss/eslint-plugin": ">=0.50.0",
|
|
56
56
|
"astro-eslint-parser": "^1.0.2",
|
|
@@ -108,32 +108,32 @@ var package_default = {
|
|
|
108
108
|
},
|
|
109
109
|
dependencies: {
|
|
110
110
|
"@antfu/install-pkg": "^0.5.0",
|
|
111
|
-
"@clack/prompts": "^0.
|
|
111
|
+
"@clack/prompts": "^0.9.0",
|
|
112
112
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
113
113
|
"@eslint/markdown": "^6.2.1",
|
|
114
|
-
"@stylistic/eslint-plugin": "^2.
|
|
115
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
116
|
-
"@typescript-eslint/parser": "^8.
|
|
117
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
114
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
116
|
+
"@typescript-eslint/parser": "^8.18.2",
|
|
117
|
+
"@vitest/eslint-plugin": "^1.1.20",
|
|
118
118
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
119
119
|
"eslint-flat-config-utils": "^0.4.0",
|
|
120
120
|
"eslint-merge-processors": "^0.1.0",
|
|
121
121
|
"eslint-plugin-antfu": "^2.7.0",
|
|
122
|
-
"eslint-plugin-command": "^0.2.
|
|
123
|
-
"eslint-plugin-import-x": "^4.
|
|
124
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
122
|
+
"eslint-plugin-command": "^0.2.7",
|
|
123
|
+
"eslint-plugin-import-x": "^4.6.1",
|
|
124
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
125
125
|
"eslint-plugin-jsonc": "^2.18.2",
|
|
126
|
-
"eslint-plugin-n": "^17.
|
|
126
|
+
"eslint-plugin-n": "^17.15.1",
|
|
127
127
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
128
|
-
"eslint-plugin-perfectionist": "^4.
|
|
128
|
+
"eslint-plugin-perfectionist": "^4.4.0",
|
|
129
129
|
"eslint-plugin-regexp": "^2.7.0",
|
|
130
|
-
"eslint-plugin-toml": "^0.
|
|
130
|
+
"eslint-plugin-toml": "^0.12.0",
|
|
131
131
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
132
132
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
133
|
-
"eslint-plugin-vue": "^9.
|
|
134
|
-
"eslint-plugin-yml": "^1.
|
|
133
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
134
|
+
"eslint-plugin-yml": "^1.16.0",
|
|
135
135
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
136
|
-
globals: "^15.
|
|
136
|
+
globals: "^15.14.0",
|
|
137
137
|
"jsonc-eslint-parser": "^2.4.0",
|
|
138
138
|
"local-pkg": "^0.5.1",
|
|
139
139
|
"parse-gitignore": "^2.0.0",
|
|
@@ -145,48 +145,48 @@ var package_default = {
|
|
|
145
145
|
},
|
|
146
146
|
devDependencies: {
|
|
147
147
|
"@antfu/eslint-config": "workspace:*",
|
|
148
|
-
"@antfu/ni": "^0.23.
|
|
149
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
150
|
-
"@eslint/config-inspector": "^0.
|
|
148
|
+
"@antfu/ni": "^0.23.2",
|
|
149
|
+
"@eslint-react/eslint-plugin": "^1.22.1",
|
|
150
|
+
"@eslint/config-inspector": "^0.6.0",
|
|
151
151
|
"@prettier/plugin-xml": "^3.4.1",
|
|
152
|
-
"@stylistic/eslint-plugin-migrate": "^2.
|
|
152
|
+
"@stylistic/eslint-plugin-migrate": "^2.12.1",
|
|
153
153
|
"@types/fs-extra": "^11.0.4",
|
|
154
|
-
"@types/node": "^22.10.
|
|
154
|
+
"@types/node": "^22.10.2",
|
|
155
155
|
"@types/prompts": "^2.4.9",
|
|
156
156
|
"@types/yargs": "^17.0.33",
|
|
157
|
-
"@unocss/eslint-plugin": "^0.
|
|
157
|
+
"@unocss/eslint-plugin": "^0.65.2",
|
|
158
158
|
"astro-eslint-parser": "^1.1.0",
|
|
159
|
-
bumpp: "^9.
|
|
160
|
-
eslint: "^9.
|
|
159
|
+
bumpp: "^9.9.2",
|
|
160
|
+
eslint: "^9.17.0",
|
|
161
161
|
"eslint-plugin-astro": "^1.3.1",
|
|
162
|
-
"eslint-plugin-format": "^0.1.
|
|
163
|
-
"eslint-plugin-react-hooks": "^5.
|
|
164
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
165
|
-
"eslint-plugin-solid": "^0.14.
|
|
166
|
-
"eslint-plugin-svelte": "^2.46.
|
|
162
|
+
"eslint-plugin-format": "^0.1.3",
|
|
163
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
164
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
165
|
+
"eslint-plugin-solid": "^0.14.5",
|
|
166
|
+
"eslint-plugin-svelte": "^2.46.1",
|
|
167
167
|
"eslint-typegen": "^0.3.2",
|
|
168
168
|
esno: "^4.8.0",
|
|
169
|
-
execa: "^9.5.
|
|
169
|
+
execa: "^9.5.2",
|
|
170
170
|
"fast-glob": "^3.3.2",
|
|
171
171
|
"fs-extra": "^11.2.0",
|
|
172
|
-
jiti: "^2.4.
|
|
173
|
-
"lint-staged": "^15.2.
|
|
172
|
+
jiti: "^2.4.2",
|
|
173
|
+
"lint-staged": "^15.2.11",
|
|
174
174
|
"prettier-plugin-astro": "^0.14.1",
|
|
175
175
|
"prettier-plugin-slidev": "^1.0.5",
|
|
176
176
|
rimraf: "^6.0.1",
|
|
177
177
|
"simple-git-hooks": "^2.11.1",
|
|
178
|
-
svelte: "^5.
|
|
178
|
+
svelte: "^5.15.0",
|
|
179
179
|
"svelte-eslint-parser": "^0.43.0",
|
|
180
180
|
tsup: "^8.3.5",
|
|
181
181
|
tsx: "^4.19.2",
|
|
182
182
|
typescript: "^5.7.2",
|
|
183
|
-
vitest: "^2.1.
|
|
183
|
+
vitest: "^2.1.8",
|
|
184
184
|
vue: "^3.5.13"
|
|
185
185
|
},
|
|
186
186
|
resolutions: {
|
|
187
187
|
"@eslint-community/eslint-utils": "^4.4.1",
|
|
188
|
-
"@typescript-eslint/utils": "^8.
|
|
189
|
-
eslint: "^9.
|
|
188
|
+
"@typescript-eslint/utils": "^8.18.2",
|
|
189
|
+
eslint: "^9.17.0",
|
|
190
190
|
tsx: "^4.19.2"
|
|
191
191
|
},
|
|
192
192
|
"simple-git-hooks": {
|
package/dist/index.cjs
CHANGED
|
@@ -107,7 +107,7 @@ __export(src_exports, {
|
|
|
107
107
|
});
|
|
108
108
|
module.exports = __toCommonJS(src_exports);
|
|
109
109
|
|
|
110
|
-
// node_modules/.pnpm/tsup@8.3.5_jiti@2.4.
|
|
110
|
+
// node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/cjs_shims.js
|
|
111
111
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
112
112
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
113
113
|
|
|
@@ -1412,25 +1412,30 @@ async function react(options = {}) {
|
|
|
1412
1412
|
],
|
|
1413
1413
|
// recommended rules from @eslint-react
|
|
1414
1414
|
"react/ensure-forward-ref-using-ref": "warn",
|
|
1415
|
+
"react/jsx-no-duplicate-props": "warn",
|
|
1416
|
+
"react/jsx-uses-vars": "warn",
|
|
1415
1417
|
"react/no-access-state-in-setstate": "error",
|
|
1416
1418
|
"react/no-array-index-key": "warn",
|
|
1417
1419
|
"react/no-children-count": "warn",
|
|
1418
1420
|
"react/no-children-for-each": "warn",
|
|
1419
1421
|
"react/no-children-map": "warn",
|
|
1420
1422
|
"react/no-children-only": "warn",
|
|
1421
|
-
"react/no-children-prop": "warn",
|
|
1422
1423
|
"react/no-children-to-array": "warn",
|
|
1423
1424
|
"react/no-clone-element": "warn",
|
|
1424
1425
|
"react/no-comment-textnodes": "warn",
|
|
1425
1426
|
"react/no-component-will-mount": "error",
|
|
1426
1427
|
"react/no-component-will-receive-props": "error",
|
|
1427
1428
|
"react/no-component-will-update": "error",
|
|
1429
|
+
"react/no-context-provider": "warn",
|
|
1428
1430
|
"react/no-create-ref": "error",
|
|
1431
|
+
"react/no-default-props": "error",
|
|
1429
1432
|
"react/no-direct-mutation-state": "error",
|
|
1430
1433
|
"react/no-duplicate-key": "error",
|
|
1431
|
-
"react/no-
|
|
1434
|
+
"react/no-forward-ref": "warn",
|
|
1435
|
+
"react/no-implicit-key": "warn",
|
|
1432
1436
|
"react/no-missing-key": "error",
|
|
1433
|
-
"react/no-nested-components": "
|
|
1437
|
+
"react/no-nested-components": "error",
|
|
1438
|
+
"react/no-prop-types": "error",
|
|
1434
1439
|
"react/no-redundant-should-component-update": "error",
|
|
1435
1440
|
"react/no-set-state-in-component-did-mount": "warn",
|
|
1436
1441
|
"react/no-set-state-in-component-did-update": "warn",
|
|
@@ -1439,11 +1444,10 @@ async function react(options = {}) {
|
|
|
1439
1444
|
"react/no-unsafe-component-will-mount": "warn",
|
|
1440
1445
|
"react/no-unsafe-component-will-receive-props": "warn",
|
|
1441
1446
|
"react/no-unsafe-component-will-update": "warn",
|
|
1442
|
-
"react/no-unstable-context-value": "
|
|
1443
|
-
"react/no-unstable-default-props": "
|
|
1447
|
+
"react/no-unstable-context-value": "warn",
|
|
1448
|
+
"react/no-unstable-default-props": "warn",
|
|
1444
1449
|
"react/no-unused-class-component-members": "warn",
|
|
1445
1450
|
"react/no-unused-state": "warn",
|
|
1446
|
-
"react/no-useless-fragment": "warn",
|
|
1447
1451
|
"react/prefer-destructuring-assignment": "warn",
|
|
1448
1452
|
"react/prefer-shorthand-boolean": "warn",
|
|
1449
1453
|
"react/prefer-shorthand-fragment": "warn",
|