@depup/eslint-plugin-jsdoc 65.3.11-depup.0 → 65.3.12-depup.0
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/changes.json +1 -1
- package/package.json +3 -3
- package/src/rules/noUndefinedTypes.js +17 -6
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @depup/eslint-plugin-jsdoc
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 65.3.
|
|
16
|
+
| Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 65.3.12 |
|
|
17
17
|
| Processed | 2026-10-18 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 2 |
|
package/changes.json
CHANGED
package/package.json
CHANGED
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
|
|
169
169
|
"test-index": "pnpm run test-no-cov test/rules/index.js"
|
|
170
170
|
},
|
|
171
|
-
"version": "65.3.
|
|
171
|
+
"version": "65.3.12-depup.0",
|
|
172
172
|
"depup": {
|
|
173
173
|
"changes": {
|
|
174
174
|
"@es-joy/jsdoccomment": {
|
|
@@ -182,8 +182,8 @@
|
|
|
182
182
|
},
|
|
183
183
|
"depsUpdated": 2,
|
|
184
184
|
"originalPackage": "eslint-plugin-jsdoc",
|
|
185
|
-
"originalVersion": "65.3.
|
|
186
|
-
"processedAt": "2026-10-
|
|
185
|
+
"originalVersion": "65.3.12",
|
|
186
|
+
"processedAt": "2026-10-18T16:09:00.345Z",
|
|
187
187
|
"smokeTest": "passed"
|
|
188
188
|
}
|
|
189
189
|
}
|
|
@@ -914,13 +914,24 @@ export default iterateJsdoc(({
|
|
|
914
914
|
return;
|
|
915
915
|
}
|
|
916
916
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
917
|
+
// Type parameters of a function type or signature (e.g.,
|
|
918
|
+
// `<T>(x: T) => T` or `{<T>(x: T): T}`) are in scope anywhere
|
|
919
|
+
// within that function type
|
|
920
|
+
/**
|
|
921
|
+
* @type {import('jsdoc-type-pratt-parser').NonRootResult & {
|
|
922
|
+
* _parent?: import('jsdoc-type-pratt-parser').NonRootResult,
|
|
923
|
+
* typeParameters?: import('jsdoc-type-pratt-parser').TypeParameterResult[]
|
|
924
|
+
* }|undefined}
|
|
925
|
+
*/
|
|
926
|
+
let ancestor = parent;
|
|
927
|
+
while (ancestor) {
|
|
928
|
+
if (ancestor.typeParameters?.some((typeParam) => {
|
|
920
929
|
return value === typeParam.name.value;
|
|
921
|
-
})
|
|
922
|
-
|
|
923
|
-
|
|
930
|
+
})) {
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
ancestor = ancestor._parent;
|
|
924
935
|
}
|
|
925
936
|
|
|
926
937
|
if (parent?.type === 'JsdocTypeInfer' && value === parent.element.value) {
|