@kitschpatrol/eslint-config 5.0.4 → 5.0.5
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/bin/cli.js +9 -4
- package/dist/index.d.ts +26 -0
- package/dist/index.js +4 -1
- package/package.json +6 -6
package/bin/cli.js
CHANGED
|
@@ -5541,7 +5541,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
5541
5541
|
var yargs_default = Yargs;
|
|
5542
5542
|
|
|
5543
5543
|
// ../../package.json
|
|
5544
|
-
var version = "5.0.
|
|
5544
|
+
var version = "5.0.5";
|
|
5545
5545
|
|
|
5546
5546
|
// ../../src/execa-utils.ts
|
|
5547
5547
|
function isErrorExecaError(error) {
|
|
@@ -5840,10 +5840,15 @@ async function executeCliCommand(logStream, positionalArguments, optionFlags, co
|
|
|
5840
5840
|
try {
|
|
5841
5841
|
const subprocess = execa(command2.name, resolvedArguments, {
|
|
5842
5842
|
cwd,
|
|
5843
|
-
env:
|
|
5843
|
+
env: {
|
|
5844
|
+
// Use colorful output unless NO_COLOR is set
|
|
5844
5845
|
// eslint-disable-next-line ts/naming-convention
|
|
5845
|
-
FORCE_COLOR: "true"
|
|
5846
|
-
|
|
5846
|
+
...process.env.NO_COLOR === void 0 ? { FORCE_COLOR: "true" } : {},
|
|
5847
|
+
// Quiet node for when processing *.config.ts files in Node 22
|
|
5848
|
+
// Suppress experimental type stripping warning with --no-warnings
|
|
5849
|
+
// eslint-disable-next-line ts/naming-convention
|
|
5850
|
+
NODE_OPTIONS: "--experimental-strip-types --disable-warning=ExperimentalWarning"
|
|
5851
|
+
},
|
|
5847
5852
|
preferLocal: true,
|
|
5848
5853
|
reject: false,
|
|
5849
5854
|
// Prevents throwing on non-zero exit code
|
package/dist/index.d.ts
CHANGED
|
@@ -1326,6 +1326,14 @@ interface RuleOptions {
|
|
|
1326
1326
|
* Requires the `author` property to be present.
|
|
1327
1327
|
*/
|
|
1328
1328
|
'json-package/require-author'?: Linter.RuleEntry<[]>
|
|
1329
|
+
/**
|
|
1330
|
+
* Requires the `keywords` property to be present.
|
|
1331
|
+
*/
|
|
1332
|
+
'json-package/require-keywords'?: Linter.RuleEntry<[]>
|
|
1333
|
+
/**
|
|
1334
|
+
* Requires the `name` property to be present.
|
|
1335
|
+
*/
|
|
1336
|
+
'json-package/require-name'?: Linter.RuleEntry<[]>
|
|
1329
1337
|
/**
|
|
1330
1338
|
* Requires the `version` property to be present.
|
|
1331
1339
|
*/
|
|
@@ -4720,6 +4728,11 @@ interface RuleOptions {
|
|
|
4720
4728
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
4721
4729
|
*/
|
|
4722
4730
|
'test/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
4731
|
+
/**
|
|
4732
|
+
* enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
|
|
4733
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
|
|
4734
|
+
*/
|
|
4735
|
+
'test/prefer-strict-boolean-matchers'?: Linter.RuleEntry<[]>
|
|
4723
4736
|
/**
|
|
4724
4737
|
* enforce strict equal over equal
|
|
4725
4738
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
@@ -4775,6 +4788,11 @@ interface RuleOptions {
|
|
|
4775
4788
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
4776
4789
|
*/
|
|
4777
4790
|
'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
4791
|
+
/**
|
|
4792
|
+
* enforce using type parameters with vitest mock functions
|
|
4793
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
|
|
4794
|
+
*/
|
|
4795
|
+
'test/require-mock-type-parameters'?: Linter.RuleEntry<TestRequireMockTypeParameters>
|
|
4778
4796
|
/**
|
|
4779
4797
|
* require toThrow() to be called with an error message
|
|
4780
4798
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
@@ -16237,6 +16255,14 @@ type TestRequireHook =
|
|
|
16237
16255
|
allowedFunctionCalls?: string[]
|
|
16238
16256
|
},
|
|
16239
16257
|
]
|
|
16258
|
+
// ----- test/require-mock-type-parameters -----
|
|
16259
|
+
type TestRequireMockTypeParameters =
|
|
16260
|
+
| []
|
|
16261
|
+
| [
|
|
16262
|
+
{
|
|
16263
|
+
checkImportFunctions?: boolean
|
|
16264
|
+
},
|
|
16265
|
+
]
|
|
16240
16266
|
// ----- test/require-top-level-describe -----
|
|
16241
16267
|
type TestRequireTopLevelDescribe =
|
|
16242
16268
|
| []
|
package/dist/index.js
CHANGED
|
@@ -766,6 +766,7 @@ var jsonPackageRecommendedRules = {
|
|
|
766
766
|
// Begin expansion 'eslint-plugin-package-json/configs/recommended' 'rules'
|
|
767
767
|
"json-package/no-empty-fields": "error",
|
|
768
768
|
"json-package/order-properties": "error",
|
|
769
|
+
"json-package/require-name": "error",
|
|
769
770
|
"json-package/require-version": "error",
|
|
770
771
|
"json-package/repository-shorthand": "error",
|
|
771
772
|
"json-package/sort-collections": "error",
|
|
@@ -3175,7 +3176,9 @@ async function json(options = {}) {
|
|
|
3175
3176
|
"stylelint"
|
|
3176
3177
|
])
|
|
3177
3178
|
}
|
|
3178
|
-
]
|
|
3179
|
+
],
|
|
3180
|
+
"json-package/require-author": "error",
|
|
3181
|
+
"json-package/require-keywords": "error"
|
|
3179
3182
|
}
|
|
3180
3183
|
},
|
|
3181
3184
|
// Sort tsconfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/eslint-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "ESLint configuration for @kitschpatrol/shared-config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
|
50
50
|
"@typescript-eslint/parser": "^8.23.0",
|
|
51
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
51
|
+
"@vitest/eslint-plugin": "^1.1.27",
|
|
52
52
|
"astro-eslint-parser": "^1.2.1",
|
|
53
|
-
"eslint": "^9.
|
|
53
|
+
"eslint": "^9.20.0",
|
|
54
54
|
"eslint-config-flat-gitignore": "^2.0.0",
|
|
55
55
|
"eslint-flat-config-utils": "^2.0.1",
|
|
56
56
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"eslint-plugin-mdx": "^3.1.5",
|
|
66
66
|
"eslint-plugin-n": "^17.15.1",
|
|
67
67
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
68
|
-
"eslint-plugin-package-json": "^0.
|
|
68
|
+
"eslint-plugin-package-json": "^0.25.0",
|
|
69
69
|
"eslint-plugin-perfectionist": "^4.8.0",
|
|
70
70
|
"eslint-plugin-regexp": "^2.7.0",
|
|
71
71
|
"eslint-plugin-svelte": "^2.46.1",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"globals": "^15.14.0",
|
|
79
79
|
"jsonc-eslint-parser": "^2.4.0",
|
|
80
80
|
"local-pkg": "^1.0.0",
|
|
81
|
-
"prettier": "^3.
|
|
81
|
+
"prettier": "^3.5.0",
|
|
82
82
|
"sort-package-json": "^2.14.0",
|
|
83
83
|
"svelte-eslint-parser": "^0.43.0",
|
|
84
84
|
"toml-eslint-parser": "^0.10.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"tsup": "^8.3.6"
|
|
96
96
|
},
|
|
97
97
|
"engines": {
|
|
98
|
-
"node": ">=22.
|
|
98
|
+
"node": ">=22.13.1",
|
|
99
99
|
"pnpm": ">=10.0.0"
|
|
100
100
|
},
|
|
101
101
|
"publishConfig": {
|