@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 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.8 |
17
- | Processed | 2026-09-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
@@ -9,6 +9,6 @@
9
9
  "to": "^1.4.9"
10
10
  }
11
11
  },
12
- "timestamp": "2026-09-09T16:10:08.502Z",
12
+ "timestamp": "2026-09-10T16:09:48.569Z",
13
13
  "totalUpdated": 2
14
14
  }
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.8-depup.0",
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.8",
180
- "processedAt": "2026-09-09T16:10:35.569Z",
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}`), and we grab
487
- // them here
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
- return /** @type {import('estree').ClassBody} */ (node.parent).body.flatMap((methodOrProp) => {
490
- if (methodOrProp.type === 'MethodDefinition') {
491
- // eslint-disable-next-line unicorn/no-lonely-if -- Pattern
492
- if (methodOrProp.key.type === 'Identifier') {
493
- return [
494
- methodOrProp.key.name,
495
- `${/** @type {import('estree').ClassDeclaration} */ (
496
- node.parent?.parent
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
- if (methodOrProp.type === 'PropertyDefinition') {
503
- // eslint-disable-next-line unicorn/no-lonely-if -- Pattern
504
- if (methodOrProp.key.type === 'Identifier') {
505
- return [
506
- methodOrProp.key.name,
507
- `${/** @type {import('estree').ClassDeclaration} */ (
508
- node.parent?.parent
509
- )?.id?.name}.${methodOrProp.key.name}`,
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