@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 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.11 |
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
@@ -9,6 +9,6 @@
9
9
  "to": "^8.71.2"
10
10
  }
11
11
  },
12
- "timestamp": "2026-10-18T00:53:28.969Z",
12
+ "timestamp": "2026-10-18T16:08:32.050Z",
13
13
  "totalUpdated": 2
14
14
  }
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.11-depup.0",
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.11",
186
- "processedAt": "2026-10-18T00:53:45.692Z",
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
- if (parent?.type === 'JsdocTypeFunction' &&
918
- /** @type {import('jsdoc-type-pratt-parser').FunctionResult} */
919
- (parent)?.typeParameters?.some((typeParam) => {
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
- return;
930
+ })) {
931
+ return;
932
+ }
933
+
934
+ ancestor = ancestor._parent;
924
935
  }
925
936
 
926
937
  if (parent?.type === 'JsdocTypeInfer' && value === parent.element.value) {