@depup/eslint-plugin-jsdoc 64.3.8-depup.0 → 64.3.9-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 +2 -2
- package/changes.json +1 -1
- package/package.json +3 -3
- package/src/rules/noUndefinedTypes.js +26 -24
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ 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) @ 64.3.
|
|
17
|
-
| Processed | 2026-09-
|
|
16
|
+
| Original | [eslint-plugin-jsdoc](https://www.npmjs.com/package/eslint-plugin-jsdoc) @ 64.3.9 |
|
|
17
|
+
| Processed | 2026-09-10 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 2 |
|
|
20
20
|
|
package/changes.json
CHANGED
package/package.json
CHANGED
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
|
|
163
163
|
"test-index": "pnpm run test-no-cov test/rules/index.js"
|
|
164
164
|
},
|
|
165
|
-
"version": "64.3.
|
|
165
|
+
"version": "64.3.9-depup.0",
|
|
166
166
|
"depup": {
|
|
167
167
|
"changes": {
|
|
168
168
|
"@typescript-eslint/utils": {
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
},
|
|
177
177
|
"depsUpdated": 2,
|
|
178
178
|
"originalPackage": "eslint-plugin-jsdoc",
|
|
179
|
-
"originalVersion": "64.3.
|
|
180
|
-
"processedAt": "2026-09-
|
|
179
|
+
"originalVersion": "64.3.9",
|
|
180
|
+
"processedAt": "2026-09-10T16:10:23.622Z",
|
|
181
181
|
"smokeTest": "passed"
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -483,32 +483,34 @@ export default iterateJsdoc(({
|
|
|
483
483
|
.concat(/** @type {string[]} */ (definedPreferredTypes))
|
|
484
484
|
.concat((() => {
|
|
485
485
|
// Other class members are not in scope, but we need them (e.g., for a
|
|
486
|
-
// sibling property or method referenced by `{@link}
|
|
487
|
-
//
|
|
486
|
+
// sibling property or method referenced by `{@link}`, or a member
|
|
487
|
+
// referenced by `{@link}` from the class's own JSDoc block), and we
|
|
488
|
+
// grab them here
|
|
489
|
+
/** @type {import('estree').ClassBody|undefined} */
|
|
490
|
+
let classBody;
|
|
491
|
+
/** @type {string|undefined} */
|
|
492
|
+
let className;
|
|
488
493
|
if (node?.type === 'MethodDefinition' || node?.type === 'PropertyDefinition') {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
)?.id?.name}.${methodOrProp.key.name}`,
|
|
498
|
-
];
|
|
499
|
-
}
|
|
500
|
-
}
|
|
494
|
+
classBody = /** @type {import('estree').ClassBody} */ (node.parent);
|
|
495
|
+
className = /** @type {import('estree').ClassDeclaration} */ (
|
|
496
|
+
node.parent?.parent
|
|
497
|
+
)?.id?.name;
|
|
498
|
+
} else if (node?.type === 'ClassDeclaration' || node?.type === 'ClassExpression') {
|
|
499
|
+
classBody = node.body;
|
|
500
|
+
className = node.id?.name;
|
|
501
|
+
}
|
|
501
502
|
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
503
|
+
if (classBody) {
|
|
504
|
+
return classBody.body.flatMap((methodOrProp) => {
|
|
505
|
+
if (
|
|
506
|
+
(methodOrProp.type === 'MethodDefinition' ||
|
|
507
|
+
methodOrProp.type === 'PropertyDefinition') &&
|
|
508
|
+
methodOrProp.key.type === 'Identifier'
|
|
509
|
+
) {
|
|
510
|
+
return [
|
|
511
|
+
methodOrProp.key.name,
|
|
512
|
+
`${className}.${methodOrProp.key.name}`,
|
|
513
|
+
];
|
|
512
514
|
}
|
|
513
515
|
/* c8 ignore next 2 -- Not yet built */
|
|
514
516
|
|