@sxzz/eslint-config 7.2.6 → 7.2.7
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 +19 -1
- package/dist/index.js +2 -2
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import pluginJsdoc from "eslint-plugin-jsdoc";
|
|
|
13
13
|
import pluginIgnore from "eslint-config-flat-gitignore";
|
|
14
14
|
import pluginDeMorgan from "eslint-plugin-de-morgan";
|
|
15
15
|
import pluginPnpm from "eslint-plugin-pnpm";
|
|
16
|
-
import
|
|
16
|
+
import pluginImport from "eslint-plugin-import-x";
|
|
17
17
|
import pluginJsonc from "eslint-plugin-jsonc";
|
|
18
18
|
import pluginYml from "eslint-plugin-yml";
|
|
19
19
|
import configJs from "@eslint/js";
|
|
@@ -1395,6 +1395,11 @@ interface Rules {
|
|
|
1395
1395
|
*/
|
|
1396
1396
|
"jsdoc/empty-tags"?: Linter.RuleEntry<JsdocEmptyTags>;
|
|
1397
1397
|
/**
|
|
1398
|
+
* Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
|
|
1399
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/escape-inline-tags.md#repos-sticky-header
|
|
1400
|
+
*/
|
|
1401
|
+
"jsdoc/escape-inline-tags"?: Linter.RuleEntry<JsdocEscapeInlineTags>;
|
|
1402
|
+
/**
|
|
1398
1403
|
* Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors).
|
|
1399
1404
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/implements-on-classes.md#repos-sticky-header
|
|
1400
1405
|
*/
|
|
@@ -3332,6 +3337,11 @@ interface Rules {
|
|
|
3332
3337
|
*/
|
|
3333
3338
|
"pnpm/yaml-no-unused-catalog-item"?: Linter.RuleEntry<[]>;
|
|
3334
3339
|
/**
|
|
3340
|
+
* Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
|
|
3341
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
|
|
3342
|
+
*/
|
|
3343
|
+
"pnpm/yaml-valid-packages"?: Linter.RuleEntry<[]>;
|
|
3344
|
+
/**
|
|
3335
3345
|
* Require using arrow functions for callbacks
|
|
3336
3346
|
* @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
|
|
3337
3347
|
*/
|
|
@@ -7580,6 +7590,11 @@ type JsdocConvertToJsdocComments = [] | [{
|
|
|
7580
7590
|
type JsdocEmptyTags = [] | [{
|
|
7581
7591
|
tags?: string[];
|
|
7582
7592
|
}];
|
|
7593
|
+
type JsdocEscapeInlineTags = [] | [{
|
|
7594
|
+
allowedInlineTags?: string[];
|
|
7595
|
+
enableFixer?: boolean;
|
|
7596
|
+
fixType?: ("backticks" | "backslash");
|
|
7597
|
+
}];
|
|
7583
7598
|
type JsdocImplementsOnClasses = [] | [{
|
|
7584
7599
|
contexts?: (string | {
|
|
7585
7600
|
comment?: string;
|
|
@@ -7838,6 +7853,7 @@ type JsdocRequireReturns = [] | [{
|
|
|
7838
7853
|
type JsdocRequireReturnsCheck = [] | [{
|
|
7839
7854
|
exemptAsync?: boolean;
|
|
7840
7855
|
exemptGenerators?: boolean;
|
|
7856
|
+
noNativeTypes?: boolean;
|
|
7841
7857
|
reportMissingReturnForUndefinedTypes?: boolean;
|
|
7842
7858
|
}];
|
|
7843
7859
|
type JsdocRequireReturnsDescription = [] | [{
|
|
@@ -8910,12 +8926,14 @@ type NoRestrictedImports = ((string | {
|
|
|
8910
8926
|
message?: string;
|
|
8911
8927
|
importNames?: string[];
|
|
8912
8928
|
allowImportNames?: string[];
|
|
8929
|
+
allowTypeImports?: boolean;
|
|
8913
8930
|
})[] | [] | [{
|
|
8914
8931
|
paths?: (string | {
|
|
8915
8932
|
name: string;
|
|
8916
8933
|
message?: string;
|
|
8917
8934
|
importNames?: string[];
|
|
8918
8935
|
allowImportNames?: string[];
|
|
8936
|
+
allowTypeImports?: boolean;
|
|
8919
8937
|
})[];
|
|
8920
8938
|
patterns?: (string[] | ({
|
|
8921
8939
|
[k: string]: unknown | undefined;
|
package/dist/index.js
CHANGED
|
@@ -13,9 +13,9 @@ const pluginPrettierRecommended = __cjs_require("eslint-plugin-prettier/recommen
|
|
|
13
13
|
import pluginUnusedImports from "eslint-plugin-unused-imports";
|
|
14
14
|
import pluginJsdoc from "eslint-plugin-jsdoc";
|
|
15
15
|
import pluginIgnore from "eslint-config-flat-gitignore";
|
|
16
|
-
|
|
16
|
+
import pluginDeMorgan from "eslint-plugin-de-morgan";
|
|
17
17
|
import pluginPnpm from "eslint-plugin-pnpm";
|
|
18
|
-
import
|
|
18
|
+
import pluginImport from "eslint-plugin-import-x";
|
|
19
19
|
const pluginJsonc = __cjs_require("eslint-plugin-jsonc");
|
|
20
20
|
const pluginYml = __cjs_require("eslint-plugin-yml");
|
|
21
21
|
const configJs = __cjs_require("@eslint/js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.7",
|
|
4
4
|
"description": "ESLint config for @sxzz.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,48 +38,48 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
41
|
-
"@eslint/js": "^9.
|
|
41
|
+
"@eslint/js": "^9.37.0",
|
|
42
42
|
"@eslint/markdown": "^7.3.0",
|
|
43
43
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
44
44
|
"eslint-config-prettier": "^10.1.8",
|
|
45
45
|
"eslint-flat-config-utils": "^2.1.4",
|
|
46
46
|
"eslint-plugin-antfu": "^3.1.1",
|
|
47
47
|
"eslint-plugin-command": "^3.3.1",
|
|
48
|
-
"eslint-plugin-de-morgan": "^
|
|
48
|
+
"eslint-plugin-de-morgan": "^2.0.0",
|
|
49
49
|
"eslint-plugin-import-x": "^4.16.1",
|
|
50
|
-
"eslint-plugin-jsdoc": "^60.
|
|
51
|
-
"eslint-plugin-jsonc": "^2.
|
|
50
|
+
"eslint-plugin-jsdoc": "^60.8.2",
|
|
51
|
+
"eslint-plugin-jsonc": "^2.21.0",
|
|
52
52
|
"eslint-plugin-n": "^17.23.1",
|
|
53
|
-
"eslint-plugin-perfectionist": "^4.15.
|
|
54
|
-
"eslint-plugin-pnpm": "^1.
|
|
53
|
+
"eslint-plugin-perfectionist": "^4.15.1",
|
|
54
|
+
"eslint-plugin-pnpm": "^1.2.0",
|
|
55
55
|
"eslint-plugin-prettier": "^5.5.4",
|
|
56
56
|
"eslint-plugin-regexp": "^2.10.0",
|
|
57
57
|
"eslint-plugin-sxzz": "^0.4.1",
|
|
58
58
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
59
59
|
"eslint-plugin-unused-imports": "^4.2.0",
|
|
60
60
|
"eslint-plugin-vue": "^10.5.0",
|
|
61
|
-
"eslint-plugin-yml": "^1.
|
|
61
|
+
"eslint-plugin-yml": "^1.19.0",
|
|
62
62
|
"globals": "^16.4.0",
|
|
63
63
|
"jsonc-eslint-parser": "^2.4.1",
|
|
64
64
|
"local-pkg": "^1.1.2",
|
|
65
65
|
"prettier": "^3.6.2",
|
|
66
|
-
"typescript-eslint": "^8.
|
|
66
|
+
"typescript-eslint": "^8.45.0",
|
|
67
67
|
"vue-eslint-parser": "^10.2.0",
|
|
68
68
|
"yaml-eslint-parser": "^1.3.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@eslint/config-inspector": "^1.3.0",
|
|
72
72
|
"@sxzz/prettier-config": "^2.2.4",
|
|
73
|
-
"@types/node": "^24.
|
|
73
|
+
"@types/node": "^24.6.2",
|
|
74
74
|
"@unocss/eslint-plugin": "^66.5.2",
|
|
75
75
|
"ansis": "^4.2.0",
|
|
76
|
-
"bumpp": "^10.
|
|
77
|
-
"eslint": "^9.
|
|
76
|
+
"bumpp": "^10.3.1",
|
|
77
|
+
"eslint": "^9.37.0",
|
|
78
78
|
"eslint-typegen": "^2.3.0",
|
|
79
79
|
"rolldown-plugin-require-cjs": "^0.3.0",
|
|
80
|
-
"tsdown": "^0.15.
|
|
80
|
+
"tsdown": "^0.15.6",
|
|
81
81
|
"tsx": "^4.20.6",
|
|
82
|
-
"typescript": "^5.9.
|
|
82
|
+
"typescript": "^5.9.3"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=20.0.0"
|