@antfu/eslint-config 4.9.0 → 4.10.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.js +8 -1
- package/dist/index.js +29 -6
- package/package.json +12 -5
package/dist/cli.js
CHANGED
|
@@ -11,13 +11,20 @@ import c from "ansis";
|
|
|
11
11
|
var package_default = {
|
|
12
12
|
name: "@antfu/eslint-config",
|
|
13
13
|
type: "module",
|
|
14
|
-
version: "4.
|
|
14
|
+
version: "4.10.1",
|
|
15
15
|
packageManager: "pnpm@10.6.2",
|
|
16
16
|
description: "Anthony's ESLint config",
|
|
17
17
|
author: "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
18
18
|
license: "MIT",
|
|
19
19
|
funding: "https://github.com/sponsors/antfu",
|
|
20
20
|
homepage: "https://github.com/antfu/eslint-config",
|
|
21
|
+
repository: {
|
|
22
|
+
type: "git",
|
|
23
|
+
url: "git+https://github.com/antfu/eslint-config.git"
|
|
24
|
+
},
|
|
25
|
+
bugs: {
|
|
26
|
+
url: "https://github.com/antfu/eslint-config/issues"
|
|
27
|
+
},
|
|
21
28
|
keywords: [
|
|
22
29
|
"eslint-config"
|
|
23
30
|
],
|
package/dist/index.js
CHANGED
|
@@ -1184,6 +1184,15 @@ async function perfectionist() {
|
|
|
1184
1184
|
|
|
1185
1185
|
// src/configs/pnpm.ts
|
|
1186
1186
|
async function pnpm() {
|
|
1187
|
+
const [
|
|
1188
|
+
pluginPnpm,
|
|
1189
|
+
yamlParser,
|
|
1190
|
+
jsoncParser
|
|
1191
|
+
] = await Promise.all([
|
|
1192
|
+
interopDefault(import("eslint-plugin-pnpm")),
|
|
1193
|
+
interopDefault(import("yaml-eslint-parser")),
|
|
1194
|
+
interopDefault(import("jsonc-eslint-parser"))
|
|
1195
|
+
]);
|
|
1187
1196
|
return [
|
|
1188
1197
|
{
|
|
1189
1198
|
files: [
|
|
@@ -1191,16 +1200,30 @@ async function pnpm() {
|
|
|
1191
1200
|
"**/package.json"
|
|
1192
1201
|
],
|
|
1193
1202
|
languageOptions: {
|
|
1194
|
-
parser:
|
|
1203
|
+
parser: jsoncParser
|
|
1204
|
+
},
|
|
1205
|
+
name: "antfu/pnpm/package-json",
|
|
1206
|
+
plugins: {
|
|
1207
|
+
pnpm: pluginPnpm
|
|
1208
|
+
},
|
|
1209
|
+
rules: {
|
|
1210
|
+
"pnpm/json-enforce-catalog": "error",
|
|
1211
|
+
"pnpm/json-prefer-workspace-settings": "error",
|
|
1212
|
+
"pnpm/json-valid-catalog": "error"
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
files: ["pnpm-workspace.yaml"],
|
|
1217
|
+
languageOptions: {
|
|
1218
|
+
parser: yamlParser
|
|
1195
1219
|
},
|
|
1196
|
-
name: "antfu/pnpm/
|
|
1220
|
+
name: "antfu/pnpm/pnpm-workspace-yaml",
|
|
1197
1221
|
plugins: {
|
|
1198
|
-
pnpm:
|
|
1222
|
+
pnpm: pluginPnpm
|
|
1199
1223
|
},
|
|
1200
1224
|
rules: {
|
|
1201
|
-
"pnpm/
|
|
1202
|
-
"pnpm/
|
|
1203
|
-
"pnpm/valid-catalog": "error"
|
|
1225
|
+
"pnpm/yaml-no-duplicate-catalog-item": "error",
|
|
1226
|
+
"pnpm/yaml-no-unused-catalog-item": "error"
|
|
1204
1227
|
}
|
|
1205
1228
|
}
|
|
1206
1229
|
];
|
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.10.1",
|
|
5
5
|
"description": "Anthony's ESLint config",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/antfu",
|
|
9
9
|
"homepage": "https://github.com/antfu/eslint-config",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/antfu/eslint-config.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/antfu/eslint-config/issues"
|
|
16
|
+
},
|
|
10
17
|
"keywords": [
|
|
11
18
|
"eslint-config"
|
|
12
19
|
],
|
|
@@ -99,7 +106,7 @@
|
|
|
99
106
|
"eslint-plugin-n": "^17.16.2",
|
|
100
107
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
101
108
|
"eslint-plugin-perfectionist": "^4.10.1",
|
|
102
|
-
"eslint-plugin-pnpm": "^0.
|
|
109
|
+
"eslint-plugin-pnpm": "^0.3.1",
|
|
103
110
|
"eslint-plugin-regexp": "^2.7.0",
|
|
104
111
|
"eslint-plugin-toml": "^0.12.0",
|
|
105
112
|
"eslint-plugin-unicorn": "^57.0.0",
|
|
@@ -122,7 +129,7 @@
|
|
|
122
129
|
"@prettier/plugin-xml": "^3.4.1",
|
|
123
130
|
"@stylistic/eslint-plugin-migrate": "^4.2.0",
|
|
124
131
|
"@types/node": "^22.13.10",
|
|
125
|
-
"@unocss/eslint-plugin": "^66.0.
|
|
132
|
+
"@unocss/eslint-plugin": "^66.1.0-beta.3",
|
|
126
133
|
"astro-eslint-parser": "^1.2.1",
|
|
127
134
|
"bumpp": "^10.1.0",
|
|
128
135
|
"eslint": "^9.22.0",
|
|
@@ -135,7 +142,7 @@
|
|
|
135
142
|
"eslint-typegen": "^2.0.0",
|
|
136
143
|
"execa": "^9.5.2",
|
|
137
144
|
"jiti": "^2.4.2",
|
|
138
|
-
"lint-staged": "^15.
|
|
145
|
+
"lint-staged": "^15.5.0",
|
|
139
146
|
"prettier-plugin-astro": "^0.14.1",
|
|
140
147
|
"prettier-plugin-slidev": "^1.0.5",
|
|
141
148
|
"simple-git-hooks": "^2.11.1",
|
|
@@ -147,7 +154,7 @@
|
|
|
147
154
|
"typescript": "^5.8.2",
|
|
148
155
|
"vitest": "^3.0.8",
|
|
149
156
|
"vue": "^3.5.13",
|
|
150
|
-
"@antfu/eslint-config": "4.
|
|
157
|
+
"@antfu/eslint-config": "4.10.1"
|
|
151
158
|
},
|
|
152
159
|
"simple-git-hooks": {
|
|
153
160
|
"pre-commit": "npx lint-staged"
|