@typescript-eslint/eslint-plugin 8.33.1-alpha.3 → 8.33.1-alpha.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.
@@ -118,3 +118,19 @@ export interface Box {
|
|
118
118
|
</Tabs>
|
119
119
|
|
120
120
|
If you find yourself writing runtime values only for types, consider refactoring your code to declare types directly.
|
121
|
+
|
122
|
+
### Why are variables reported as unused despite being referenced by @link in JSDoc?
|
123
|
+
|
124
|
+
JSDoc references are not supported by typescript-eslint.
|
125
|
+
You can use a rule such as [`jsdoc/no-undefined-types`](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md) to resolve variables as used in JSDoc comments.
|
126
|
+
|
127
|
+
```ts
|
128
|
+
import type { Box } from './Box';
|
129
|
+
// ~~~
|
130
|
+
// 'Box' is defined but never used.
|
131
|
+
|
132
|
+
/**
|
133
|
+
* @see {@link Box}
|
134
|
+
*/
|
135
|
+
export function getBox() {}
|
136
|
+
```
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/eslint-plugin",
|
3
|
-
"version": "8.33.1-alpha.
|
3
|
+
"version": "8.33.1-alpha.5",
|
4
4
|
"description": "TypeScript plugin for ESLint",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -61,10 +61,10 @@
|
|
61
61
|
},
|
62
62
|
"dependencies": {
|
63
63
|
"@eslint-community/regexpp": "^4.10.0",
|
64
|
-
"@typescript-eslint/scope-manager": "8.33.1-alpha.
|
65
|
-
"@typescript-eslint/type-utils": "8.33.1-alpha.
|
66
|
-
"@typescript-eslint/utils": "8.33.1-alpha.
|
67
|
-
"@typescript-eslint/visitor-keys": "8.33.1-alpha.
|
64
|
+
"@typescript-eslint/scope-manager": "8.33.1-alpha.5",
|
65
|
+
"@typescript-eslint/type-utils": "8.33.1-alpha.5",
|
66
|
+
"@typescript-eslint/utils": "8.33.1-alpha.5",
|
67
|
+
"@typescript-eslint/visitor-keys": "8.33.1-alpha.5",
|
68
68
|
"graphemer": "^1.4.0",
|
69
69
|
"ignore": "^7.0.0",
|
70
70
|
"natural-compare": "^1.4.0",
|
@@ -73,8 +73,8 @@
|
|
73
73
|
"devDependencies": {
|
74
74
|
"@types/mdast": "^4.0.3",
|
75
75
|
"@types/natural-compare": "*",
|
76
|
-
"@typescript-eslint/rule-schema-to-typescript-types": "8.33.1-alpha.
|
77
|
-
"@typescript-eslint/rule-tester": "8.33.1-alpha.
|
76
|
+
"@typescript-eslint/rule-schema-to-typescript-types": "8.33.1-alpha.5",
|
77
|
+
"@typescript-eslint/rule-tester": "8.33.1-alpha.5",
|
78
78
|
"@vitest/coverage-v8": "^3.1.3",
|
79
79
|
"ajv": "^6.12.6",
|
80
80
|
"cross-fetch": "*",
|
@@ -94,7 +94,7 @@
|
|
94
94
|
"vitest": "^3.1.3"
|
95
95
|
},
|
96
96
|
"peerDependencies": {
|
97
|
-
"@typescript-eslint/parser": "^8.33.1-alpha.
|
97
|
+
"@typescript-eslint/parser": "^8.33.1-alpha.5",
|
98
98
|
"eslint": "^8.57.0 || ^9.0.0",
|
99
99
|
"typescript": ">=4.8.4 <5.9.0"
|
100
100
|
},
|