@will-stone/eslint-config 21.2.0 → 21.3.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.d.ts +0 -3
- package/dist/index.js +21 -4
- package/package.json +21 -21
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -349,6 +349,7 @@ function base() {
|
|
|
349
349
|
"prefer-rest-params": "error",
|
|
350
350
|
"prefer-spread": "error",
|
|
351
351
|
"prefer-template": "warn",
|
|
352
|
+
"preserve-caught-error": "error",
|
|
352
353
|
radix: "error",
|
|
353
354
|
"require-atomic-updates": "error",
|
|
354
355
|
"require-await": "error",
|
|
@@ -425,6 +426,8 @@ function jsdoc() {
|
|
|
425
426
|
"jsdoc/no-restricted-syntax": "off",
|
|
426
427
|
"jsdoc/no-types": "warn",
|
|
427
428
|
"jsdoc/no-undefined-types": "off",
|
|
429
|
+
"jsdoc/reject-any-type": "error",
|
|
430
|
+
"jsdoc/reject-function-type": "error",
|
|
428
431
|
"jsdoc/require-asterisk-prefix": "warn",
|
|
429
432
|
"jsdoc/require-description": "off",
|
|
430
433
|
"jsdoc/require-description-complete-sentence": "warn",
|
|
@@ -432,6 +435,8 @@ function jsdoc() {
|
|
|
432
435
|
"jsdoc/require-file-overview": "off",
|
|
433
436
|
"jsdoc/require-hyphen-before-param-description": "warn",
|
|
434
437
|
"jsdoc/require-jsdoc": "off",
|
|
438
|
+
"jsdoc/require-next-description": "error",
|
|
439
|
+
"jsdoc/require-next-type": "off",
|
|
435
440
|
"jsdoc/require-param": "off",
|
|
436
441
|
"jsdoc/require-param-description": "warn",
|
|
437
442
|
"jsdoc/require-param-name": "warn",
|
|
@@ -446,11 +451,17 @@ function jsdoc() {
|
|
|
446
451
|
"jsdoc/require-returns-type": "off",
|
|
447
452
|
"jsdoc/require-template": "off",
|
|
448
453
|
"jsdoc/require-throws": "warn",
|
|
454
|
+
"jsdoc/require-throws-description": "error",
|
|
455
|
+
"jsdoc/require-throws-type": "off",
|
|
449
456
|
"jsdoc/require-yields": "warn",
|
|
450
457
|
"jsdoc/require-yields-check": "warn",
|
|
458
|
+
"jsdoc/require-yields-description": "error",
|
|
459
|
+
"jsdoc/require-yields-type": "off",
|
|
460
|
+
"jsdoc/required-tags": "off",
|
|
451
461
|
"jsdoc/sort-tags": "warn",
|
|
452
462
|
"jsdoc/tag-lines": "off",
|
|
453
463
|
"jsdoc/text-escaping": "off",
|
|
464
|
+
"jsdoc/type-formatting": "off",
|
|
454
465
|
"jsdoc/valid-types": "off"
|
|
455
466
|
}
|
|
456
467
|
}];
|
|
@@ -544,6 +555,7 @@ function packageJson() {
|
|
|
544
555
|
"package-json/valid-dependencies": "error",
|
|
545
556
|
"package-json/valid-description": "error",
|
|
546
557
|
"package-json/valid-devDependencies": "error",
|
|
558
|
+
"package-json/valid-directories": "error",
|
|
547
559
|
"package-json/valid-exports": "error",
|
|
548
560
|
"package-json/valid-license": "error",
|
|
549
561
|
"package-json/valid-name": "error",
|
|
@@ -915,7 +927,6 @@ function style() {
|
|
|
915
927
|
"@stylistic/jsx-newline": "off",
|
|
916
928
|
"@stylistic/jsx-one-expression-per-line": "off",
|
|
917
929
|
"@stylistic/jsx-pascal-case": "off",
|
|
918
|
-
"@stylistic/jsx-props-no-multi-spaces": "off",
|
|
919
930
|
"@stylistic/jsx-quotes": "off",
|
|
920
931
|
"@stylistic/jsx-self-closing-comp": "off",
|
|
921
932
|
"@stylistic/jsx-sort-props": "off",
|
|
@@ -1241,6 +1252,7 @@ function unicorn() {
|
|
|
1241
1252
|
"unicorn/no-array-method-this-argument": "warn",
|
|
1242
1253
|
"unicorn/no-array-reduce": "error",
|
|
1243
1254
|
"unicorn/no-array-reverse": "error",
|
|
1255
|
+
"unicorn/no-array-sort": "error",
|
|
1244
1256
|
"unicorn/no-await-expression-member": "warn",
|
|
1245
1257
|
"unicorn/no-await-in-promise-methods": "error",
|
|
1246
1258
|
"unicorn/no-console-spaces": "warn",
|
|
@@ -1296,8 +1308,10 @@ function unicorn() {
|
|
|
1296
1308
|
"unicorn/prefer-array-index-of": "warn",
|
|
1297
1309
|
"unicorn/prefer-array-some": "error",
|
|
1298
1310
|
"unicorn/prefer-at": "warn",
|
|
1311
|
+
"unicorn/prefer-bigint-literals": "warn",
|
|
1299
1312
|
"unicorn/prefer-blob-reading-methods": "error",
|
|
1300
1313
|
"unicorn/prefer-class-fields": "warn",
|
|
1314
|
+
"unicorn/prefer-classlist-toggle": "warn",
|
|
1301
1315
|
"unicorn/prefer-code-point": "error",
|
|
1302
1316
|
"unicorn/prefer-date-now": "warn",
|
|
1303
1317
|
"unicorn/prefer-default-parameters": "warn",
|
|
@@ -1345,6 +1359,7 @@ function unicorn() {
|
|
|
1345
1359
|
"unicorn/prevent-abbreviations": "off",
|
|
1346
1360
|
"unicorn/relative-url-style": "warn",
|
|
1347
1361
|
"unicorn/require-array-join-separator": "warn",
|
|
1362
|
+
"unicorn/require-module-attributes": "warn",
|
|
1348
1363
|
"unicorn/require-module-specifiers": "warn",
|
|
1349
1364
|
"unicorn/require-number-to-fixed-digits-argument": "warn",
|
|
1350
1365
|
"unicorn/require-post-message-target-origin": "error",
|
|
@@ -1370,6 +1385,7 @@ async function vitest(_configContext) {
|
|
|
1370
1385
|
"vitest/consistent-test-it": "warn",
|
|
1371
1386
|
"vitest/consistent-vitest-vi": "warn",
|
|
1372
1387
|
"vitest/expect-expect": "error",
|
|
1388
|
+
"vitest/hoisted-apis-on-top": "error",
|
|
1373
1389
|
"vitest/max-expects": "off",
|
|
1374
1390
|
"vitest/max-nested-describe": "warn",
|
|
1375
1391
|
"vitest/no-alias-methods": "warn",
|
|
@@ -1409,6 +1425,7 @@ async function vitest(_configContext) {
|
|
|
1409
1425
|
"vitest/prefer-equality-matcher": "warn",
|
|
1410
1426
|
"vitest/prefer-expect-assertions": "off",
|
|
1411
1427
|
"vitest/prefer-expect-resolves": "warn",
|
|
1428
|
+
"vitest/prefer-expect-type-of": "warn",
|
|
1412
1429
|
"vitest/prefer-hooks-in-order": "warn",
|
|
1413
1430
|
"vitest/prefer-hooks-on-top": "warn",
|
|
1414
1431
|
"vitest/prefer-importing-vitest-globals": "warn",
|
|
@@ -1558,8 +1575,7 @@ async function configImpl(options = defaultOptions) {
|
|
|
1558
1575
|
return autoConfig.config(configContext);
|
|
1559
1576
|
}));
|
|
1560
1577
|
configs.push(...activatedAutoConfigs);
|
|
1561
|
-
|
|
1562
|
-
return merged;
|
|
1578
|
+
return configs.flat();
|
|
1563
1579
|
}
|
|
1564
1580
|
/**
|
|
1565
1581
|
* An ESLint Flat Config factory function that auto-configures to your
|
|
@@ -1570,6 +1586,7 @@ async function configImpl(options = defaultOptions) {
|
|
|
1570
1586
|
* @returns An array of ESLint Flat Configs.
|
|
1571
1587
|
*/
|
|
1572
1588
|
const config = async (options, ...extraConfigs) => tseslint.config(await configImpl(options), ...extraConfigs);
|
|
1589
|
+
var src_default = config;
|
|
1573
1590
|
|
|
1574
1591
|
//#endregion
|
|
1575
|
-
export {
|
|
1592
|
+
export { src_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.0",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -30,46 +30,46 @@
|
|
|
30
30
|
"typecheck": "tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stylistic/eslint-plugin": "^5.
|
|
33
|
+
"@stylistic/eslint-plugin": "^5.4.0",
|
|
34
34
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
35
35
|
"@types/debug": "^4.1.12",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
37
|
-
"@typescript-eslint/parser": "^8.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
37
|
+
"@typescript-eslint/parser": "^8.44.0",
|
|
38
38
|
"confusing-browser-globals": "^1.0.11",
|
|
39
|
-
"debug": "^4.4.
|
|
39
|
+
"debug": "^4.4.3",
|
|
40
40
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
41
|
-
"eslint-plugin-jsdoc": "^
|
|
41
|
+
"eslint-plugin-jsdoc": "^59.1.0",
|
|
42
42
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
43
|
-
"eslint-plugin-n": "^17.
|
|
44
|
-
"eslint-plugin-package-json": "^0.
|
|
43
|
+
"eslint-plugin-n": "^17.23.1",
|
|
44
|
+
"eslint-plugin-package-json": "^0.56.3",
|
|
45
45
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
46
|
-
"eslint-plugin-unicorn": "^
|
|
47
|
-
"globals": "^16.
|
|
46
|
+
"eslint-plugin-unicorn": "^61.0.2",
|
|
47
|
+
"globals": "^16.4.0",
|
|
48
48
|
"globby": "^14.1.0",
|
|
49
|
-
"type-fest": "^
|
|
50
|
-
"typescript-eslint": "^8.
|
|
49
|
+
"type-fest": "^5.0.1",
|
|
50
|
+
"typescript-eslint": "^8.44.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@commits-with-character/conventional-changelog-preset": "^5.1.1",
|
|
54
|
-
"@eslint/config-inspector": "^1.
|
|
54
|
+
"@eslint/config-inspector": "^1.3.0",
|
|
55
55
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
56
56
|
"@types/node": "^22.15.29",
|
|
57
|
-
"@typescript-eslint/utils": "^8.
|
|
58
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
57
|
+
"@typescript-eslint/utils": "^8.44.0",
|
|
58
|
+
"@vitest/eslint-plugin": "^1.3.12",
|
|
59
59
|
"@will-stone/prettier-config": "^11.0.1",
|
|
60
60
|
"astro-eslint-parser": "^1.2.2",
|
|
61
|
-
"eslint": "^9.
|
|
61
|
+
"eslint": "^9.36.0",
|
|
62
62
|
"eslint-plugin-astro": "^1.3.1",
|
|
63
63
|
"eslint-plugin-react": "^7.37.5",
|
|
64
64
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
65
65
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
66
66
|
"husky": "^9.1.7",
|
|
67
67
|
"jiti": "^2.5.1",
|
|
68
|
-
"lint-staged": "^16.1.
|
|
69
|
-
"memfs": "^4.
|
|
68
|
+
"lint-staged": "^16.1.6",
|
|
69
|
+
"memfs": "^4.42.0",
|
|
70
70
|
"prettier": "^3.6.2",
|
|
71
|
-
"release-it": "^19.0.
|
|
72
|
-
"tsdown": "^0.
|
|
71
|
+
"release-it": "^19.0.5",
|
|
72
|
+
"tsdown": "^0.15.3",
|
|
73
73
|
"typescript": "^5.9.2",
|
|
74
74
|
"vitest": "^3.2.4"
|
|
75
75
|
},
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"optional": true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"packageManager": "pnpm@10.
|
|
105
|
+
"packageManager": "pnpm@10.17.0",
|
|
106
106
|
"engines": {
|
|
107
107
|
"node": ">=22"
|
|
108
108
|
},
|