@antfu/eslint-config 9.3.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
  },
@@ -2005,6 +2131,7 @@ async function typescript(options = {}) {
2005
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.3.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,11 +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.4.2",
41
+ "eslint-plugin-erasable-syntax-only": "^0.7.1",
42
42
  "eslint-plugin-format": ">=0.1.0",
43
43
  "eslint-plugin-jsx-a11y": ">=6.10.2",
44
44
  "eslint-plugin-react-refresh": "^0.5.0",
45
- "eslint-plugin-solid": "^0.14.3",
45
+ "eslint-plugin-solid": "^0.17.0",
46
46
  "eslint-plugin-svelte": ">=2.35.1",
47
47
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
48
48
  "prettier-plugin-astro": "^0.14.0",
@@ -111,35 +111,35 @@
111
111
  "dependencies": {
112
112
  "@antfu/install-pkg": "^2.0.1",
113
113
  "@clack/prompts": "^1.7.0",
114
- "@e18e/eslint-plugin": "^0.6.0",
114
+ "@e18e/eslint-plugin": "^0.8.0",
115
115
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
116
116
  "@eslint/markdown": "^8.0.3",
117
117
  "@stylistic/eslint-plugin": "^5.10.0",
118
- "@typescript-eslint/eslint-plugin": "^8.66.0",
119
- "@typescript-eslint/parser": "^8.66.0",
120
- "@vitest/eslint-plugin": "^1.6.26",
118
+ "@typescript-eslint/eslint-plugin": "^8.68.0",
119
+ "@typescript-eslint/parser": "^8.68.0",
120
+ "@vitest/eslint-plugin": "^1.6.27",
121
121
  "ansis": "^4.3.1",
122
122
  "cac": "^7.0.0",
123
- "eslint-config-flat-gitignore": "^2.3.0",
123
+ "eslint-config-flat-gitignore": "^2.4.0",
124
124
  "eslint-flat-config-utils": "^3.2.0",
125
125
  "eslint-merge-processors": "^2.0.0",
126
126
  "eslint-plugin-antfu": "^3.2.3",
127
127
  "eslint-plugin-command": "^4.0.0",
128
128
  "eslint-plugin-import-lite": "^0.6.0",
129
- "eslint-plugin-jsdoc": "^63.3.3",
130
- "eslint-plugin-jsonc": "^3.4.1",
131
- "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",
132
132
  "eslint-plugin-no-only-tests": "^3.4.0",
133
133
  "eslint-plugin-perfectionist": "^5.10.1",
134
- "eslint-plugin-pnpm": "^1.7.0",
135
- "eslint-plugin-regexp": "^3.1.1",
134
+ "eslint-plugin-pnpm": "^1.8.0",
135
+ "eslint-plugin-regexp": "^3.2.0",
136
136
  "eslint-plugin-toml": "^1.5.0",
137
- "eslint-plugin-unicorn": "^73.0.0",
137
+ "eslint-plugin-unicorn": "^74.0.0",
138
138
  "eslint-plugin-unused-imports": "^4.4.1",
139
139
  "eslint-plugin-vue": "^10.10.0",
140
140
  "eslint-plugin-yml": "^3.8.1",
141
141
  "eslint-processor-vue-blocks": "^2.0.0",
142
- "globals": "^17.9.0",
142
+ "globals": "^17.11.0",
143
143
  "local-pkg": "^1.2.1",
144
144
  "parse-gitignore": "^2.0.0",
145
145
  "toml-eslint-parser": "^1.0.3",
@@ -147,51 +147,51 @@
147
147
  "yaml-eslint-parser": "^2.1.0"
148
148
  },
149
149
  "devDependencies": {
150
- "@angular-eslint/eslint-plugin": "^22.1.0",
151
- "@angular-eslint/eslint-plugin-template": "^22.1.0",
152
- "@angular-eslint/template-parser": "^22.1.0",
153
- "@angular/core": "^22.1.0",
154
- "@antfu/ni": "^30.3.0",
155
- "@eslint-react/eslint-plugin": "^5.18.2",
156
- "@eslint/config-inspector": "^3.2.0",
157
- "@next/eslint-plugin-next": "^16.3.0",
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",
158
159
  "@prettier/plugin-xml": "^3.4.2",
159
160
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
160
- "@types/node": "^26.1.2",
161
- "@unocss/eslint-plugin": "^66.7.5",
162
- "astro-eslint-parser": "^3.0.0",
163
- "baseline-browser-mapping": "^2.11.12",
164
- "bumpp": "^12.1.1",
165
- "eslint": "^10.8.0",
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",
166
167
  "eslint-plugin-astro": "^3.1.0",
167
- "eslint-plugin-erasable-syntax-only": "^0.4.2",
168
+ "eslint-plugin-erasable-syntax-only": "^0.7.1",
168
169
  "eslint-plugin-format": "^2.0.1",
169
170
  "eslint-plugin-jsx-a11y": "^6.10.2",
170
- "eslint-plugin-react-refresh": "^0.5.3",
171
- "eslint-plugin-solid": "^0.14.5",
172
- "eslint-plugin-svelte": "^3.22.0",
173
- "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",
174
175
  "eslint-typegen": "^2.3.1",
175
176
  "find-up-simple": "^1.0.1",
176
177
  "jiti": "^2.7.0",
177
- "lint-staged": "^17.3.0",
178
- "pnpm-workspace-yaml": "^1.7.0",
178
+ "lint-staged": "^17.4.1",
179
+ "pnpm-workspace-yaml": "^1.8.0",
179
180
  "prettier-plugin-astro": "^0.14.1",
180
181
  "prettier-plugin-slidev": "^1.0.5",
181
- "simple-git-hooks": "^2.13.1",
182
+ "simple-git-hooks": "^2.14.0",
182
183
  "skills-npm": "^1.2.0",
183
- "svelte": "^5.56.8",
184
- "svelte-eslint-parser": "^1.8.0",
184
+ "svelte": "^5.57.0",
185
+ "svelte-eslint-parser": "^1.8.1",
185
186
  "tinyexec": "^1.3.0",
186
187
  "tinyglobby": "^0.2.17",
187
188
  "tsdown": "^0.22.14",
188
189
  "tsdown-stale-guard": "^0.1.3",
189
- "tsnapi": "^1.2.0",
190
- "tsx": "^4.23.6",
190
+ "tsnapi": "^1.4.0",
191
+ "tsx": "^4.23.13",
191
192
  "typescript": "^6.0.3",
192
- "vitest": "^4.1.10",
193
- "vue": "^3.5.40",
194
- "@antfu/eslint-config": "9.3.0"
193
+ "vitest": "^4.1.11",
194
+ "vue": "^3.5.42"
195
195
  },
196
196
  "resolutions": {
197
197
  "@eslint-community/eslint-utils": "catalog:peer",