@antfu/eslint-config 9.2.0 → 9.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/dist/index.mjs CHANGED
@@ -1252,6 +1252,7 @@ async function pnpm(options) {
1252
1252
  plugins: { pnpm: pluginPnpm },
1253
1253
  rules: {
1254
1254
  "pnpm/yaml-enforce-settings": ["error", { settings: {
1255
+ minimumReleaseAgeExcludePrune: true,
1255
1256
  shellEmulator: true,
1256
1257
  trustPolicy: "no-downgrade"
1257
1258
  } }],
@@ -1269,65 +1270,190 @@ async function pnpm(options) {
1269
1270
  {
1270
1271
  order: [
1271
1272
  ...[
1272
- "cacheDir",
1273
+ "dedupeInjectedDeps",
1274
+ "disallowWorkspaceCycles",
1275
+ "failIfNoMatch",
1276
+ "ignoreWorkspaceCycles",
1277
+ "ignoreWorkspaceRootCheck",
1278
+ "includeWorkspaceRoot",
1279
+ "injectWorkspacePackages",
1280
+ "legacyDirFiltering",
1281
+ "linkWorkspacePackages",
1282
+ "preferWorkspacePackages",
1283
+ "saveWorkspaceProtocol",
1284
+ "sharedWorkspaceLockfile",
1285
+ "syncInjectedDepsAfterScripts"
1286
+ ],
1287
+ ...[
1273
1288
  "catalogMode",
1274
- "cleanupUnusedCatalogs",
1275
- "dedupeDirectDeps",
1276
- "deployAllFiles",
1277
- "enablePrePostScripts",
1278
- "engineStrict",
1289
+ "catalogPrune",
1290
+ "cleanupUnusedCatalogs"
1291
+ ],
1292
+ ...[
1293
+ "allowedDeprecatedVersions",
1294
+ "blockExoticSubdeps",
1295
+ "ignoredOptionalDependencies",
1296
+ "minimumReleaseAge",
1297
+ "minimumReleaseAgeExclude",
1298
+ "minimumReleaseAgeExcludePrune",
1299
+ "minimumReleaseAgeIgnoreMissingTime",
1300
+ "minimumReleaseAgeStrict",
1301
+ "registrySupportsTimeField",
1302
+ "resolutionMode",
1303
+ "supportedArchitectures",
1304
+ "trustLockfile",
1305
+ "trustPolicy",
1306
+ "trustPolicyExclude",
1307
+ "trustPolicyIgnoreAfter",
1308
+ "update"
1309
+ ],
1310
+ ...[
1311
+ "autoInstallPeers",
1312
+ "dedupePeerDependents",
1313
+ "dedupePeers",
1314
+ "peerDependencyRules",
1315
+ "resolvePeersFromWorkspaceRoot",
1316
+ "strictPeerDependencies"
1317
+ ],
1318
+ ...[
1319
+ "fetchMinSpeedKiBps",
1320
+ "fetchRetries",
1321
+ "fetchRetryFactor",
1322
+ "fetchRetryMaxtimeout",
1323
+ "fetchRetryMintimeout",
1324
+ "fetchTimeout",
1325
+ "fetchWarnTimeoutMs",
1326
+ "gitShallowHosts",
1327
+ "httpProxy",
1328
+ "httpsProxy",
1329
+ "localAddress",
1330
+ "maxsockets",
1331
+ "namedRegistries",
1332
+ "networkConcurrency",
1333
+ "noProxy",
1334
+ "registries",
1335
+ "registry",
1336
+ "strictSsl"
1337
+ ],
1338
+ ...[
1339
+ "dlxCacheMaxAge",
1340
+ "enableGlobalVirtualStore",
1341
+ "enableModulesDir",
1279
1342
  "extendNodePath",
1343
+ "modulesCacheMaxAge",
1344
+ "modulesDir",
1345
+ "nodeExperimentalPackageMap",
1346
+ "nodeLinker",
1347
+ "nodePackageMapType",
1348
+ "packageImportMethod",
1349
+ "preferSymlinkedExecutables",
1350
+ "symlink",
1351
+ "virtualStoreDir",
1352
+ "virtualStoreDirMaxLength",
1353
+ "virtualStoreOnly",
1354
+ "virtualStoreType"
1355
+ ],
1356
+ ...[
1280
1357
  "hoist",
1358
+ "hoistingLimits",
1281
1359
  "hoistPattern",
1282
1360
  "hoistWorkspacePackages",
1283
- "ignoreCompatibilityDb",
1361
+ "publicHoistPattern",
1362
+ "shamefullyHoist"
1363
+ ],
1364
+ ...[
1365
+ "frozenStore",
1366
+ "storeDir",
1367
+ "strictStorePkgContentCheck",
1368
+ "useRunningStoreServer",
1369
+ "verifyStoreIntegrity"
1370
+ ],
1371
+ ...[
1372
+ "gitBranchLockfile",
1373
+ "lockfile",
1374
+ "lockfileIncludeTarballUrl",
1375
+ "mergeGitBranchLockfilesBranchPattern",
1376
+ "peersSuffixMaxLength",
1377
+ "preferFrozenLockfile"
1378
+ ],
1379
+ ...[
1380
+ "childConcurrency",
1381
+ "dangerouslyAllowAllBuilds",
1382
+ "enablePrePostScripts",
1284
1383
  "ignoreDepScripts",
1285
1384
  "ignoreScripts",
1286
- "ignoreWorkspaceRootCheck",
1385
+ "nodeOptions",
1386
+ "requiredScripts",
1387
+ "scriptShell",
1388
+ "shellEmulator",
1389
+ "sideEffectsCache",
1390
+ "sideEffectsCacheReadonly",
1391
+ "strictDepBuilds",
1392
+ "unsafePerm",
1393
+ "verifyDepsBeforeRun"
1394
+ ],
1395
+ ...[
1287
1396
  "managePackageManagerVersions",
1288
- "minimumReleaseAge",
1289
- "minimumReleaseAgeExclude",
1290
- "modulesDir",
1291
- "nodeLinker",
1397
+ "nodeDownloadMirrors",
1292
1398
  "nodeVersion",
1293
- "optimisticRepeatInstall",
1294
1399
  "packageManagerStrict",
1295
1400
  "packageManagerStrictVersion",
1296
- "preferSymlinkedExecutables",
1297
- "preferWorkspacePackages",
1298
- "publicHoistPattern",
1299
- "registrySupportsTimeField",
1300
- "requiredScripts",
1301
- "resolutionMode",
1401
+ "pmOnFail",
1402
+ "runtimeOnFail"
1403
+ ],
1404
+ ...[
1405
+ "ci",
1406
+ "color",
1407
+ "engineStrict",
1408
+ "loglevel",
1409
+ "npmPath",
1410
+ "recursiveInstall",
1411
+ "updateNotifier",
1412
+ "useBetaCli",
1413
+ "useStderr"
1414
+ ],
1415
+ ...[
1416
+ "cacheDir",
1417
+ "globalBinDir",
1418
+ "globalDir",
1419
+ "globalPnpmfile",
1420
+ "globalShims",
1421
+ "ignorePnpmfile",
1422
+ "npmrcAuthFile",
1423
+ "pnpmfile",
1424
+ "stateDir"
1425
+ ],
1426
+ ...["audit", "versioning"],
1427
+ ...[
1428
+ "allowNonAppliedPatches",
1429
+ "dedupeDirectDeps",
1430
+ "deployAllFiles",
1431
+ "ignoreCompatibilityDb",
1432
+ "initAuthorEmail",
1433
+ "initAuthorName",
1434
+ "initAuthorUrl",
1435
+ "initLicense",
1436
+ "initVersion",
1437
+ "optimisticRepeatInstall",
1438
+ "saveExact",
1302
1439
  "savePrefix",
1303
- "scriptShell",
1304
- "shamefullyHoist",
1305
- "shellEmulator",
1306
- "stateDir",
1307
- "supportedArchitectures",
1308
- "symlink",
1309
- "tag",
1310
- "trustPolicy",
1311
- "trustPolicyExclude",
1312
- "updateNotifier"
1440
+ "tag"
1313
1441
  ],
1314
1442
  "packages",
1443
+ "packageConfigs",
1315
1444
  "overrides",
1445
+ "packageExtensions",
1316
1446
  "patchedDependencies",
1317
- "catalog",
1318
- "catalogs",
1447
+ "configDependencies",
1448
+ "allowBuilds",
1319
1449
  ...[
1320
- "allowedDeprecatedVersions",
1321
- "allowNonAppliedPatches",
1322
- "configDependencies",
1323
1450
  "ignoredBuiltDependencies",
1324
- "ignoredOptionalDependencies",
1325
1451
  "neverBuiltDependencies",
1326
1452
  "onlyBuiltDependencies",
1327
- "onlyBuiltDependenciesFile",
1328
- "packageExtensions",
1329
- "peerDependencyRules"
1330
- ]
1453
+ "onlyBuiltDependenciesFile"
1454
+ ],
1455
+ "catalog",
1456
+ "catalogs"
1331
1457
  ],
1332
1458
  pathPattern: "^$"
1333
1459
  },
@@ -2002,9 +2128,10 @@ async function typescript(options = {}) {
2002
2128
  }] : [],
2003
2129
  ...erasableOnly ? [{
2004
2130
  name: "antfu/typescript/erasable-syntax-only",
2005
- plugins: { "erasable-syntax-only": await interopDefault(import("./lib-BGCOhS6c.mjs")) },
2131
+ plugins: { "erasable-syntax-only": await interopDefault(import("eslint-plugin-erasable-syntax-only")) },
2006
2132
  rules: {
2007
2133
  "erasable-syntax-only/enums": "error",
2134
+ "erasable-syntax-only/export-aliases": "error",
2008
2135
  "erasable-syntax-only/import-aliases": "error",
2009
2136
  "erasable-syntax-only/namespaces": "error",
2010
2137
  "erasable-syntax-only/parameter-properties": "error"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antfu/eslint-config",
3
3
  "type": "module",
4
- "version": "9.2.0",
4
+ "version": "9.4.0",
5
5
  "description": "Anthony's ESLint config",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -38,10 +38,11 @@
38
38
  "astro-eslint-parser": ">=1.0.2",
39
39
  "eslint": "^9.10.0 || ^10.0.0",
40
40
  "eslint-plugin-astro": ">=1.2.0",
41
+ "eslint-plugin-erasable-syntax-only": "^0.7.1",
41
42
  "eslint-plugin-format": ">=0.1.0",
42
43
  "eslint-plugin-jsx-a11y": ">=6.10.2",
43
44
  "eslint-plugin-react-refresh": "^0.5.0",
44
- "eslint-plugin-solid": "^0.14.3",
45
+ "eslint-plugin-solid": "^0.17.0",
45
46
  "eslint-plugin-svelte": ">=2.35.1",
46
47
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
47
48
  "prettier-plugin-astro": "^0.14.0",
@@ -76,6 +77,9 @@
76
77
  "eslint-plugin-astro": {
77
78
  "optional": true
78
79
  },
80
+ "eslint-plugin-erasable-syntax-only": {
81
+ "optional": true
82
+ },
79
83
  "eslint-plugin-format": {
80
84
  "optional": true
81
85
  },
@@ -105,37 +109,37 @@
105
109
  }
106
110
  },
107
111
  "dependencies": {
108
- "@antfu/install-pkg": "^1.1.0",
112
+ "@antfu/install-pkg": "^2.0.1",
109
113
  "@clack/prompts": "^1.7.0",
110
- "@e18e/eslint-plugin": "^0.5.1",
114
+ "@e18e/eslint-plugin": "^0.8.0",
111
115
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
112
116
  "@eslint/markdown": "^8.0.3",
113
117
  "@stylistic/eslint-plugin": "^5.10.0",
114
- "@typescript-eslint/eslint-plugin": "^8.65.0",
115
- "@typescript-eslint/parser": "^8.65.0",
116
- "@vitest/eslint-plugin": "^1.6.23",
118
+ "@typescript-eslint/eslint-plugin": "^8.68.0",
119
+ "@typescript-eslint/parser": "^8.68.0",
120
+ "@vitest/eslint-plugin": "^1.6.27",
117
121
  "ansis": "^4.3.1",
118
122
  "cac": "^7.0.0",
119
- "eslint-config-flat-gitignore": "^2.3.0",
123
+ "eslint-config-flat-gitignore": "^2.4.0",
120
124
  "eslint-flat-config-utils": "^3.2.0",
121
125
  "eslint-merge-processors": "^2.0.0",
122
126
  "eslint-plugin-antfu": "^3.2.3",
123
- "eslint-plugin-command": "^3.5.3",
127
+ "eslint-plugin-command": "^4.0.0",
124
128
  "eslint-plugin-import-lite": "^0.6.0",
125
- "eslint-plugin-jsdoc": "^63.2.0",
126
- "eslint-plugin-jsonc": "^3.3.0",
127
- "eslint-plugin-n": "^18.2.2",
129
+ "eslint-plugin-jsdoc": "^64.3.2",
130
+ "eslint-plugin-jsonc": "^3.4.2",
131
+ "eslint-plugin-n": "^18.3.0",
128
132
  "eslint-plugin-no-only-tests": "^3.4.0",
129
- "eslint-plugin-perfectionist": "^5.10.0",
130
- "eslint-plugin-pnpm": "^1.6.1",
131
- "eslint-plugin-regexp": "^3.1.1",
132
- "eslint-plugin-toml": "^1.4.0",
133
- "eslint-plugin-unicorn": "^72.0.0",
133
+ "eslint-plugin-perfectionist": "^5.10.1",
134
+ "eslint-plugin-pnpm": "^1.8.0",
135
+ "eslint-plugin-regexp": "^3.2.0",
136
+ "eslint-plugin-toml": "^1.5.0",
137
+ "eslint-plugin-unicorn": "^74.0.0",
134
138
  "eslint-plugin-unused-imports": "^4.4.1",
135
139
  "eslint-plugin-vue": "^10.10.0",
136
- "eslint-plugin-yml": "^3.6.0",
140
+ "eslint-plugin-yml": "^3.8.1",
137
141
  "eslint-processor-vue-blocks": "^2.0.0",
138
- "globals": "^17.7.0",
142
+ "globals": "^17.11.0",
139
143
  "local-pkg": "^1.2.1",
140
144
  "parse-gitignore": "^2.0.0",
141
145
  "toml-eslint-parser": "^1.0.3",
@@ -143,51 +147,51 @@
143
147
  "yaml-eslint-parser": "^2.1.0"
144
148
  },
145
149
  "devDependencies": {
146
- "@angular-eslint/eslint-plugin": "^22.1.0",
147
- "@angular-eslint/eslint-plugin-template": "^22.1.0",
148
- "@angular-eslint/template-parser": "^22.1.0",
149
- "@angular/core": "^22.0.7",
150
- "@antfu/ni": "^30.2.0",
151
- "@eslint-react/eslint-plugin": "^5.17.3",
152
- "@eslint/config-inspector": "^3.1.0",
153
- "@next/eslint-plugin-next": "^16.2.10",
150
+ "@angular-eslint/eslint-plugin": "^22.2.0",
151
+ "@angular-eslint/eslint-plugin-template": "^22.2.0",
152
+ "@angular-eslint/template-parser": "^22.2.0",
153
+ "@angular/core": "^22.1.4",
154
+ "@antfu/eslint-config": "9.4.0",
155
+ "@antfu/ni": "^30.5.0",
156
+ "@eslint-react/eslint-plugin": "^5.18.6",
157
+ "@eslint/config-inspector": "^3.3.0",
158
+ "@next/eslint-plugin-next": "^16.3.3",
154
159
  "@prettier/plugin-xml": "^3.4.2",
155
160
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
156
- "@types/node": "^26.1.1",
157
- "@unocss/eslint-plugin": "^66.7.5",
158
- "astro-eslint-parser": "^3.0.0",
159
- "baseline-browser-mapping": "^2.10.44",
160
- "bumpp": "^11.1.0",
161
- "eslint": "^10.7.0",
162
- "eslint-plugin-astro": "^3.0.1",
163
- "eslint-plugin-erasable-syntax-only": "^0.4.2",
161
+ "@types/node": "^26.4.0",
162
+ "@unocss/eslint-plugin": "^66.8.1",
163
+ "astro-eslint-parser": "^3.1.0",
164
+ "baseline-browser-mapping": "^2.11.20",
165
+ "bumpp": "^12.2.2",
166
+ "eslint": "^10.9.1",
167
+ "eslint-plugin-astro": "^3.1.0",
168
+ "eslint-plugin-erasable-syntax-only": "^0.7.1",
164
169
  "eslint-plugin-format": "^2.0.1",
165
170
  "eslint-plugin-jsx-a11y": "^6.10.2",
166
- "eslint-plugin-react-refresh": "^0.5.3",
167
- "eslint-plugin-solid": "^0.14.5",
168
- "eslint-plugin-svelte": "^3.22.0",
169
- "eslint-plugin-vuejs-accessibility": "^2.5.0",
171
+ "eslint-plugin-react-refresh": "^0.5.5",
172
+ "eslint-plugin-solid": "^0.17.0",
173
+ "eslint-plugin-svelte": "^3.23.0",
174
+ "eslint-plugin-vuejs-accessibility": "^2.6.0",
170
175
  "eslint-typegen": "^2.3.1",
171
176
  "find-up-simple": "^1.0.1",
172
177
  "jiti": "^2.7.0",
173
- "lint-staged": "^17.1.0",
174
- "pnpm-workspace-yaml": "^1.6.1",
178
+ "lint-staged": "^17.4.1",
179
+ "pnpm-workspace-yaml": "^1.8.0",
175
180
  "prettier-plugin-astro": "^0.14.1",
176
181
  "prettier-plugin-slidev": "^1.0.5",
177
- "simple-git-hooks": "^2.13.1",
182
+ "simple-git-hooks": "^2.14.0",
178
183
  "skills-npm": "^1.2.0",
179
- "svelte": "^5.56.7",
180
- "svelte-eslint-parser": "^1.8.0",
181
- "tinyexec": "^1.2.4",
184
+ "svelte": "^5.57.0",
185
+ "svelte-eslint-parser": "^1.8.1",
186
+ "tinyexec": "^1.3.0",
182
187
  "tinyglobby": "^0.2.17",
183
- "tsdown": "^0.22.12",
188
+ "tsdown": "^0.22.14",
184
189
  "tsdown-stale-guard": "^0.1.3",
185
- "tsnapi": "^1.0.0",
186
- "tsx": "^4.23.1",
190
+ "tsnapi": "^1.4.0",
191
+ "tsx": "^4.23.13",
187
192
  "typescript": "^6.0.3",
188
- "vitest": "^4.1.10",
189
- "vue": "^3.5.40",
190
- "@antfu/eslint-config": "9.2.0"
193
+ "vitest": "^4.1.11",
194
+ "vue": "^3.5.42"
191
195
  },
192
196
  "resolutions": {
193
197
  "@eslint-community/eslint-utils": "catalog:peer",
@@ -206,17 +210,6 @@
206
210
  "*": "eslint --fix"
207
211
  },
208
212
  "inlinedDependencies": {
209
- "@eslint-community/eslint-utils": "4.9.1",
210
- "@typescript-eslint/scope-manager": "8.62.0",
211
- "@typescript-eslint/types": "8.62.0",
212
- "@typescript-eslint/utils": "8.62.0",
213
- "@typescript-eslint/visitor-keys": "8.62.0",
214
- "cached-factory": "0.3.0",
215
- "eslint-plugin-erasable-syntax-only": "0.4.2",
216
- "eslint-visitor-keys": [
217
- "3.4.3",
218
- "5.0.1"
219
- ],
220
213
  "find-up-simple": "1.0.1"
221
214
  },
222
215
  "scripts": {