@cany748/eslint-config 3.0.0 → 3.0.1
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/README.md +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +12 -13
package/README.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -377,7 +377,7 @@ interface RuleOptions {
|
|
|
377
377
|
*/
|
|
378
378
|
'@typescript-eslint/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
|
-
* Disallow type parameters that
|
|
380
|
+
* Disallow type parameters that aren't used multiple times
|
|
381
381
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
382
382
|
*/
|
|
383
383
|
'@typescript-eslint/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
@@ -433,7 +433,7 @@ interface RuleOptions {
|
|
|
433
433
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>
|
|
434
434
|
/**
|
|
435
435
|
* Disallow unused variables
|
|
436
|
-
* @see https://
|
|
436
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
437
437
|
*/
|
|
438
438
|
'@typescript-eslint/no-unused-vars'?: Linter.RuleEntry<TypescriptEslintNoUnusedVars>
|
|
439
439
|
/**
|
|
@@ -4234,7 +4234,7 @@ interface RuleOptions {
|
|
|
4234
4234
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
4235
4235
|
/**
|
|
4236
4236
|
* Disallow unused variables
|
|
4237
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-
|
|
4237
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
4238
4238
|
*/
|
|
4239
4239
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
4240
4240
|
/**
|
|
@@ -6079,6 +6079,7 @@ type TypescriptEslintNoMisusedPromises = []|[{
|
|
|
6079
6079
|
checksVoidReturn?: (boolean | {
|
|
6080
6080
|
arguments?: boolean
|
|
6081
6081
|
attributes?: boolean
|
|
6082
|
+
inheritedMethods?: boolean
|
|
6082
6083
|
properties?: boolean
|
|
6083
6084
|
returns?: boolean
|
|
6084
6085
|
variables?: boolean
|
package/dist/index.d.ts
CHANGED
|
@@ -377,7 +377,7 @@ interface RuleOptions {
|
|
|
377
377
|
*/
|
|
378
378
|
'@typescript-eslint/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
|
-
* Disallow type parameters that
|
|
380
|
+
* Disallow type parameters that aren't used multiple times
|
|
381
381
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
382
382
|
*/
|
|
383
383
|
'@typescript-eslint/no-unnecessary-type-parameters'?: Linter.RuleEntry<[]>
|
|
@@ -433,7 +433,7 @@ interface RuleOptions {
|
|
|
433
433
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>
|
|
434
434
|
/**
|
|
435
435
|
* Disallow unused variables
|
|
436
|
-
* @see https://
|
|
436
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
437
437
|
*/
|
|
438
438
|
'@typescript-eslint/no-unused-vars'?: Linter.RuleEntry<TypescriptEslintNoUnusedVars>
|
|
439
439
|
/**
|
|
@@ -4234,7 +4234,7 @@ interface RuleOptions {
|
|
|
4234
4234
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
4235
4235
|
/**
|
|
4236
4236
|
* Disallow unused variables
|
|
4237
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-
|
|
4237
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
4238
4238
|
*/
|
|
4239
4239
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
4240
4240
|
/**
|
|
@@ -6079,6 +6079,7 @@ type TypescriptEslintNoMisusedPromises = []|[{
|
|
|
6079
6079
|
checksVoidReturn?: (boolean | {
|
|
6080
6080
|
arguments?: boolean
|
|
6081
6081
|
attributes?: boolean
|
|
6082
|
+
inheritedMethods?: boolean
|
|
6082
6083
|
properties?: boolean
|
|
6083
6084
|
returns?: boolean
|
|
6084
6085
|
variables?: boolean
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cany748/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"import": "./dist/index.js",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@unocss/eslint-plugin": "^0.
|
|
17
|
+
"@unocss/eslint-plugin": "^0.62.1",
|
|
18
18
|
"eslint-plugin-vue": "^9.27.0",
|
|
19
|
-
"typescript-eslint": "^8.
|
|
19
|
+
"typescript-eslint": "^8.1.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependenciesMeta": {
|
|
22
22
|
"@unocss/eslint-plugin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"eslint": "
|
|
33
|
+
"eslint": "^9.9.0",
|
|
34
34
|
"eslint-config-flat-gitignore": "^0.1.8",
|
|
35
35
|
"eslint-config-prettier": "^9.1.0",
|
|
36
36
|
"eslint-flat-config-utils": "^0.3.0",
|
|
@@ -42,39 +42,38 @@
|
|
|
42
42
|
"eslint-plugin-prettier": "^5.2.1",
|
|
43
43
|
"eslint-plugin-regexp": "^2.6.0",
|
|
44
44
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
45
|
-
"eslint-plugin-unused-imports": "^4.
|
|
45
|
+
"eslint-plugin-unused-imports": "^4.1.3",
|
|
46
46
|
"eslint-plugin-vitest": "^0.5.4",
|
|
47
|
-
"eslint-ts-patch": "9.8.0-1",
|
|
48
47
|
"globals": "^15.9.0",
|
|
49
48
|
"jsonc-eslint-parser": "^2.4.0",
|
|
50
49
|
"local-pkg": "^0.5.0",
|
|
51
50
|
"prettier": "^3.3.3"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
54
|
-
"@types/node": "^
|
|
55
|
-
"@unocss/eslint-plugin": "^0.
|
|
53
|
+
"@types/node": "^22.2.0",
|
|
54
|
+
"@unocss/eslint-plugin": "^0.62.1",
|
|
56
55
|
"bumpp": "^9.4.2",
|
|
57
56
|
"eslint-plugin-vue": "^9.27.0",
|
|
58
57
|
"eslint-typegen": "^0.3.0",
|
|
59
58
|
"esno": "^4.7.0",
|
|
60
|
-
"lint-staged": "^15.2.
|
|
59
|
+
"lint-staged": "^15.2.9",
|
|
61
60
|
"simple-git-hooks": "^2.11.1",
|
|
62
61
|
"tsup": "^8.2.4",
|
|
63
62
|
"typescript": "^5.5.4",
|
|
64
|
-
"typescript-eslint": "^8.
|
|
63
|
+
"typescript-eslint": "^8.1.0"
|
|
65
64
|
},
|
|
66
65
|
"simple-git-hooks": {
|
|
67
66
|
"pre-commit": "pnpm lint-staged"
|
|
68
67
|
},
|
|
69
68
|
"lint-staged": {
|
|
70
|
-
"*": "eslint --fix"
|
|
69
|
+
"*": "eslint --fix --flag unstable_ts_config"
|
|
71
70
|
},
|
|
72
71
|
"scripts": {
|
|
73
72
|
"build": "pnpm typegen && tsup --format esm,cjs --clean --dts",
|
|
74
73
|
"typegen": "esno scripts/typegen.ts",
|
|
75
74
|
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
76
|
-
"lint": "eslint .",
|
|
77
|
-
"lint:fix": "eslint . --fix",
|
|
75
|
+
"lint": "eslint . --flag unstable_ts_config",
|
|
76
|
+
"lint:fix": "eslint . --fix --flag unstable_ts_config",
|
|
78
77
|
"release": "bumpp && pnpm publish",
|
|
79
78
|
"typecheck": "tsc --noEmit"
|
|
80
79
|
}
|