@sxzz/eslint-config 3.17.3 → 3.17.4
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 +13 -9
- package/package.json +18 -15
package/dist/index.d.ts
CHANGED
|
@@ -395,7 +395,7 @@ interface Rules {
|
|
|
395
395
|
*/
|
|
396
396
|
'@typescript-eslint/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>;
|
|
397
397
|
/**
|
|
398
|
-
* Disallow type parameters that
|
|
398
|
+
* Disallow type parameters that aren't used multiple times
|
|
399
399
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
400
400
|
*/
|
|
401
401
|
'@typescript-eslint/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>;
|
|
@@ -451,7 +451,7 @@ interface Rules {
|
|
|
451
451
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
452
452
|
/**
|
|
453
453
|
* Disallow unused variables
|
|
454
|
-
* @see https://
|
|
454
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
455
455
|
*/
|
|
456
456
|
'@typescript-eslint/no-unused-vars'?: Linter.RuleEntry<TypescriptEslintNoUnusedVars>;
|
|
457
457
|
/**
|
|
@@ -658,7 +658,7 @@ interface Rules {
|
|
|
658
658
|
*/
|
|
659
659
|
'@typescript-eslint/unified-signatures'?: Linter.RuleEntry<TypescriptEslintUnifiedSignatures>;
|
|
660
660
|
/**
|
|
661
|
-
* Enforce typing arguments in
|
|
661
|
+
* Enforce typing arguments in Promise rejection callbacks as `unknown`
|
|
662
662
|
* @see https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable
|
|
663
663
|
*/
|
|
664
664
|
'@typescript-eslint/use-unknown-in-catch-callback-variable'?: Linter.RuleEntry<[]>;
|
|
@@ -4414,7 +4414,7 @@ interface Rules {
|
|
|
4414
4414
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
|
|
4415
4415
|
/**
|
|
4416
4416
|
* Disallow unused variables
|
|
4417
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-
|
|
4417
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
4418
4418
|
*/
|
|
4419
4419
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
|
|
4420
4420
|
/**
|
|
@@ -6392,6 +6392,7 @@ type TypescriptEslintNoMisusedPromises = [] | [
|
|
|
6392
6392
|
checksVoidReturn?: (boolean | {
|
|
6393
6393
|
arguments?: boolean;
|
|
6394
6394
|
attributes?: boolean;
|
|
6395
|
+
inheritedMethods?: boolean;
|
|
6395
6396
|
properties?: boolean;
|
|
6396
6397
|
returns?: boolean;
|
|
6397
6398
|
variables?: boolean;
|
|
@@ -6754,24 +6755,25 @@ type AccessorPairs = [] | [
|
|
|
6754
6755
|
type AntfuConsistentListNewline = [] | [
|
|
6755
6756
|
{
|
|
6756
6757
|
ArrayExpression?: boolean;
|
|
6758
|
+
ArrayPattern?: boolean;
|
|
6757
6759
|
ArrowFunctionExpression?: boolean;
|
|
6758
6760
|
CallExpression?: boolean;
|
|
6759
6761
|
ExportNamedDeclaration?: boolean;
|
|
6760
6762
|
FunctionDeclaration?: boolean;
|
|
6761
6763
|
FunctionExpression?: boolean;
|
|
6762
6764
|
ImportDeclaration?: boolean;
|
|
6765
|
+
JSONArrayExpression?: boolean;
|
|
6766
|
+
JSONObjectExpression?: boolean;
|
|
6767
|
+
JSXOpeningElement?: boolean;
|
|
6763
6768
|
NewExpression?: boolean;
|
|
6764
6769
|
ObjectExpression?: boolean;
|
|
6770
|
+
ObjectPattern?: boolean;
|
|
6771
|
+
TSFunctionType?: boolean;
|
|
6765
6772
|
TSInterfaceDeclaration?: boolean;
|
|
6766
6773
|
TSTupleType?: boolean;
|
|
6767
6774
|
TSTypeLiteral?: boolean;
|
|
6768
6775
|
TSTypeParameterDeclaration?: boolean;
|
|
6769
6776
|
TSTypeParameterInstantiation?: boolean;
|
|
6770
|
-
ObjectPattern?: boolean;
|
|
6771
|
-
ArrayPattern?: boolean;
|
|
6772
|
-
JSXOpeningElement?: boolean;
|
|
6773
|
-
JSONArrayExpression?: boolean;
|
|
6774
|
-
JSONObjectExpression?: boolean;
|
|
6775
6777
|
}
|
|
6776
6778
|
];
|
|
6777
6779
|
type AntfuIndentUnindent = [] | [
|
|
@@ -9512,6 +9514,8 @@ type PerfectionistSortEnums = [] | [
|
|
|
9512
9514
|
type?: ("alphabetical" | "natural" | "line-length");
|
|
9513
9515
|
order?: ("asc" | "desc");
|
|
9514
9516
|
ignoreCase?: boolean;
|
|
9517
|
+
sortByValue?: boolean;
|
|
9518
|
+
forceNumericSort?: boolean;
|
|
9515
9519
|
partitionByComment?: (string[] | boolean | string);
|
|
9516
9520
|
}
|
|
9517
9521
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.4",
|
|
4
4
|
"description": "ESLint config for @sxzz.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
"main": "./dist/index.js",
|
|
20
20
|
"module": "./dist/index.js",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
|
-
"exports":
|
|
22
|
+
"exports": {
|
|
23
|
+
".": "./dist/index.js",
|
|
24
|
+
"./package.json": "./package.json"
|
|
25
|
+
},
|
|
23
26
|
"publishConfig": {
|
|
24
27
|
"access": "public"
|
|
25
28
|
},
|
|
@@ -27,45 +30,45 @@
|
|
|
27
30
|
"eslint": "^8.56.0 || ^9.0.0"
|
|
28
31
|
},
|
|
29
32
|
"dependencies": {
|
|
30
|
-
"@eslint/js": "^9.9.
|
|
33
|
+
"@eslint/js": "^9.9.1",
|
|
31
34
|
"@types/eslint": "^9.6.0",
|
|
32
|
-
"@unocss/eslint-plugin": "^0.
|
|
35
|
+
"@unocss/eslint-plugin": "^0.62.2",
|
|
33
36
|
"eslint-config-flat-gitignore": "^0.1.8",
|
|
34
37
|
"eslint-config-prettier": "^9.1.0",
|
|
35
|
-
"eslint-plugin-antfu": "^2.3.
|
|
38
|
+
"eslint-plugin-antfu": "^2.3.6",
|
|
36
39
|
"eslint-plugin-command": "^0.2.3",
|
|
37
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
38
41
|
"eslint-plugin-import-x": "^3.1.0",
|
|
39
|
-
"eslint-plugin-jsdoc": "^50.
|
|
42
|
+
"eslint-plugin-jsdoc": "^50.2.2",
|
|
40
43
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
41
44
|
"eslint-plugin-markdown": "^5.1.0",
|
|
42
45
|
"eslint-plugin-n": "^17.10.2",
|
|
43
|
-
"eslint-plugin-perfectionist": "^3.
|
|
46
|
+
"eslint-plugin-perfectionist": "^3.2.0",
|
|
44
47
|
"eslint-plugin-prettier": "^5.2.1",
|
|
45
48
|
"eslint-plugin-regexp": "^2.6.0",
|
|
46
49
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
47
|
-
"eslint-plugin-unused-imports": "^4.
|
|
50
|
+
"eslint-plugin-unused-imports": "^4.1.3",
|
|
48
51
|
"eslint-plugin-vue": "^9.27.0",
|
|
49
52
|
"eslint-plugin-yml": "^1.14.0",
|
|
50
53
|
"globals": "^15.9.0",
|
|
51
54
|
"jsonc-eslint-parser": "^2.4.0",
|
|
52
55
|
"local-pkg": "^0.5.0",
|
|
53
56
|
"prettier": "^3.3.3",
|
|
54
|
-
"typescript-eslint": "^8.0
|
|
57
|
+
"typescript-eslint": "^8.2.0",
|
|
55
58
|
"vue-eslint-parser": "^9.4.3",
|
|
56
59
|
"yaml-eslint-parser": "^1.2.3"
|
|
57
60
|
},
|
|
58
61
|
"devDependencies": {
|
|
59
|
-
"@eslint/config-inspector": "^0.5.
|
|
62
|
+
"@eslint/config-inspector": "^0.5.4",
|
|
60
63
|
"@sxzz/prettier-config": "^2.0.2",
|
|
61
|
-
"@types/node": "^
|
|
62
|
-
"bumpp": "^9.
|
|
63
|
-
"eslint": "^9.9.
|
|
64
|
-
"eslint-typegen": "^0.3.
|
|
64
|
+
"@types/node": "^22.5.0",
|
|
65
|
+
"bumpp": "^9.5.2",
|
|
66
|
+
"eslint": "^9.9.1",
|
|
67
|
+
"eslint-typegen": "^0.3.1",
|
|
65
68
|
"importx": "^0.4.3",
|
|
66
69
|
"picocolors": "^1.0.1",
|
|
67
70
|
"tsup": "^8.2.4",
|
|
68
|
-
"tsx": "^4.
|
|
71
|
+
"tsx": "^4.17.0",
|
|
69
72
|
"typescript": "^5.5.4"
|
|
70
73
|
},
|
|
71
74
|
"engines": {
|