@will-stone/eslint-config 12.0.0 → 12.0.2
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 +2 -2
- package/dist/index.js +40 -4
- package/package.json +25 -25
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* This is a set of optional features that can be turned on.
|
|
@@ -18,6 +18,6 @@ type Options = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Construct an array of ESLint flat config items.
|
|
20
20
|
*/
|
|
21
|
-
declare function config(options?: Options):
|
|
21
|
+
declare function config(options?: Options): TSESLint.FlatConfig.Config[];
|
|
22
22
|
|
|
23
23
|
export { config as default };
|
package/dist/index.js
CHANGED
|
@@ -631,8 +631,8 @@ function react(_options) {
|
|
|
631
631
|
},
|
|
632
632
|
name: "will-stone/react",
|
|
633
633
|
plugins: {
|
|
634
|
-
// @ts-expect-error -- no idea why this is tripping.
|
|
635
634
|
"jsx-a11y": pluginJsxA11y,
|
|
635
|
+
// @ts-expect-error -- no idea why this is tripping.
|
|
636
636
|
react: pluginReact,
|
|
637
637
|
"react-hooks": fixupPluginRules(pluginReactHooks)
|
|
638
638
|
},
|
|
@@ -973,7 +973,6 @@ function typescript(rawOptions) {
|
|
|
973
973
|
},
|
|
974
974
|
name: "will-stone/typescript",
|
|
975
975
|
plugins: {
|
|
976
|
-
// @ts-expect-error -- is using classic config type instead of flat config.
|
|
977
976
|
"@typescript-eslint": pluginTypescript
|
|
978
977
|
},
|
|
979
978
|
rules: {
|
|
@@ -1077,6 +1076,7 @@ function typescript(rawOptions) {
|
|
|
1077
1076
|
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
1078
1077
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1079
1078
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
1079
|
+
"@typescript-eslint/no-unsafe-type-assertion": "off",
|
|
1080
1080
|
"@typescript-eslint/no-unsafe-unary-minus": "off",
|
|
1081
1081
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1082
1082
|
"@typescript-eslint/only-throw-error": "off",
|
|
@@ -1093,6 +1093,7 @@ function typescript(rawOptions) {
|
|
|
1093
1093
|
"@typescript-eslint/prefer-return-this-type": "off",
|
|
1094
1094
|
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
1095
1095
|
"@typescript-eslint/promise-function-async": "off",
|
|
1096
|
+
"@typescript-eslint/related-getter-setter-pairs": "off",
|
|
1096
1097
|
"@typescript-eslint/require-array-sort-compare": "off",
|
|
1097
1098
|
"@typescript-eslint/require-await": "off",
|
|
1098
1099
|
"@typescript-eslint/restrict-plus-operands": "off",
|
|
@@ -1362,8 +1363,43 @@ function vitest(_options) {
|
|
|
1362
1363
|
name: "will-stone/vitest",
|
|
1363
1364
|
plugins: { vitest: fixupPluginRules2(pluginVitest) },
|
|
1364
1365
|
rules: {
|
|
1365
|
-
|
|
1366
|
-
|
|
1366
|
+
"vitest/consistent-test-filename": "warn",
|
|
1367
|
+
"vitest/consistent-test-it": "warn",
|
|
1368
|
+
"vitest/max-nested-describe": "warn",
|
|
1369
|
+
"vitest/no-alias-methods": "warn",
|
|
1370
|
+
"vitest/no-conditional-expect": "warn",
|
|
1371
|
+
"vitest/no-conditional-in-test": "warn",
|
|
1372
|
+
"vitest/no-conditional-tests": "warn",
|
|
1373
|
+
"vitest/no-disabled-tests": "warn",
|
|
1374
|
+
"vitest/no-duplicate-hooks": "warn",
|
|
1375
|
+
"vitest/no-focused-tests": "warn",
|
|
1376
|
+
"vitest/no-interpolation-in-snapshots": "warn",
|
|
1377
|
+
"vitest/no-large-snapshots": "warn",
|
|
1378
|
+
"vitest/no-mocks-import": "warn",
|
|
1379
|
+
"vitest/no-restricted-matchers": "warn",
|
|
1380
|
+
"vitest/no-restricted-vi-methods": "warn",
|
|
1381
|
+
"vitest/no-standalone-expect": "warn",
|
|
1382
|
+
"vitest/no-test-prefixes": "warn",
|
|
1383
|
+
"vitest/no-test-return-statement": "warn",
|
|
1384
|
+
"vitest/prefer-called-with": "warn",
|
|
1385
|
+
"vitest/prefer-comparison-matcher": "warn",
|
|
1386
|
+
"vitest/prefer-each": "warn",
|
|
1387
|
+
"vitest/prefer-equality-matcher": "warn",
|
|
1388
|
+
"vitest/prefer-expect-resolves": "warn",
|
|
1389
|
+
"vitest/prefer-hooks-in-order": "warn",
|
|
1390
|
+
"vitest/prefer-hooks-on-top": "warn",
|
|
1391
|
+
"vitest/prefer-lowercase-title": "warn",
|
|
1392
|
+
"vitest/prefer-mock-promise-shorthand": "warn",
|
|
1393
|
+
"vitest/prefer-snapshot-hint": "warn",
|
|
1394
|
+
"vitest/prefer-spy-on": "warn",
|
|
1395
|
+
"vitest/prefer-strict-equal": "warn",
|
|
1396
|
+
"vitest/prefer-to-be": "warn",
|
|
1397
|
+
"vitest/prefer-to-be-object": "warn",
|
|
1398
|
+
"vitest/prefer-to-contain": "warn",
|
|
1399
|
+
"vitest/prefer-to-have-length": "warn",
|
|
1400
|
+
"vitest/prefer-todo": "warn",
|
|
1401
|
+
"vitest/require-hook": "warn",
|
|
1402
|
+
"vitest/require-to-throw-message": "warn",
|
|
1367
1403
|
"vitest/expect-expect": "error",
|
|
1368
1404
|
// Expect as much as you like. Is there any benefit to limiting this?
|
|
1369
1405
|
"vitest/max-expects": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.2",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -41,49 +41,49 @@
|
|
|
41
41
|
},
|
|
42
42
|
"prettier": "@will-stone/prettier-config",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@eslint/compat": "^1.2.
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
46
|
-
"@typescript-eslint/parser": "^8.
|
|
47
|
-
"astro-eslint-parser": "^1.0
|
|
44
|
+
"@eslint/compat": "^1.2.3",
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
46
|
+
"@typescript-eslint/parser": "^8.16.0",
|
|
47
|
+
"astro-eslint-parser": "^1.1.0",
|
|
48
48
|
"confusing-browser-globals": "^1.0.11",
|
|
49
49
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
50
|
-
"eslint-plugin-astro": "^1.3.
|
|
51
|
-
"eslint-plugin-import-x": "^4.3
|
|
52
|
-
"eslint-plugin-jest": "^28.
|
|
53
|
-
"eslint-plugin-jsx-a11y": "^6.10.
|
|
54
|
-
"eslint-plugin-n": "^17.
|
|
55
|
-
"eslint-plugin-react": "^7.37.
|
|
50
|
+
"eslint-plugin-astro": "^1.3.1",
|
|
51
|
+
"eslint-plugin-import-x": "^4.4.3",
|
|
52
|
+
"eslint-plugin-jest": "^28.9.0",
|
|
53
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
54
|
+
"eslint-plugin-n": "^17.14.0",
|
|
55
|
+
"eslint-plugin-react": "^7.37.2",
|
|
56
56
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
57
57
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
58
58
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
59
|
-
"eslint-plugin-unicorn": "^56.0.
|
|
59
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
60
60
|
"eslint-plugin-vitest": "^0.5.4",
|
|
61
|
-
"globals": "^15.
|
|
61
|
+
"globals": "^15.12.0",
|
|
62
62
|
"globby": "^14.0.2",
|
|
63
|
-
"type-fest": "^4.
|
|
63
|
+
"type-fest": "^4.28.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@commits-with-character/conventional-changelog-preset": "^1.0.0",
|
|
67
|
-
"@eslint/config-inspector": "^0.5.
|
|
68
|
-
"@release-it/conventional-changelog": "^9.0.
|
|
67
|
+
"@eslint/config-inspector": "^0.5.6",
|
|
68
|
+
"@release-it/conventional-changelog": "^9.0.3",
|
|
69
69
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
70
70
|
"@types/eslint": "^9.6.1",
|
|
71
|
-
"@types/node": "^22.
|
|
72
|
-
"@typescript-eslint/utils": "^8.
|
|
71
|
+
"@types/node": "^22.10.0",
|
|
72
|
+
"@typescript-eslint/utils": "^8.16.0",
|
|
73
73
|
"@will-stone/prettier-config": "^8.0.1",
|
|
74
74
|
"lint-staged": "^15.2.10",
|
|
75
75
|
"memfs": "^4.14.0",
|
|
76
|
-
"prettier": "^3.
|
|
77
|
-
"release-it": "^17.
|
|
76
|
+
"prettier": "^3.4.1",
|
|
77
|
+
"release-it": "^17.10.0",
|
|
78
78
|
"simple-git-hooks": "^2.11.1",
|
|
79
|
-
"tsup": "^8.3.
|
|
80
|
-
"typescript": "^5.
|
|
81
|
-
"vitest": "^2.1.
|
|
79
|
+
"tsup": "^8.3.5",
|
|
80
|
+
"typescript": "^5.7.2",
|
|
81
|
+
"vitest": "^2.1.6"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"eslint": ">=9.
|
|
84
|
+
"eslint": ">=9.15.0"
|
|
85
85
|
},
|
|
86
86
|
"overrides": {
|
|
87
|
-
"eslint": ">=9.
|
|
87
|
+
"eslint": ">=9.15.0"
|
|
88
88
|
}
|
|
89
89
|
}
|