eslint-plugin-jsdoc 65.3.14 → 65.3.15

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/package.json CHANGED
@@ -163,5 +163,5 @@
163
163
  "test-cov": "TIMING=1 c8 --reporter text pnpm run test-no-cov",
164
164
  "test-index": "pnpm run test-no-cov test/rules/index.js"
165
165
  },
166
- "version": "65.3.14"
166
+ "version": "65.3.15"
167
167
  }
@@ -48,12 +48,14 @@ export default iterateJsdoc(({
48
48
  );
49
49
  });
50
50
 
51
+ // Only `@typedef` names are type aliases; names of `@param`,
52
+ // `@property`, `@const`, etc. are not types
51
53
  const typedefs = comments
52
54
  .flatMap((doc) => {
53
55
  return doc.tags.filter(({
54
56
  tag,
55
57
  }) => {
56
- return utils.isNameOrNamepathDefiningTag(tag);
58
+ return tag === 'typedef';
57
59
  });
58
60
  });
59
61
 
@@ -489,7 +491,9 @@ export default iterateJsdoc(({
489
491
  for (const tag of jsdoc.tags) {
490
492
  const mightHaveTypePosition = utils.tagMightHaveTypePosition(tag.tag);
491
493
  const hasTypePosition = mightHaveTypePosition === true && Boolean(tag.type);
492
- if (hasTypePosition && (!exemptTypedefs || !utils.isNameOrNamepathDefiningTag(tag.tag))) {
494
+ // Only the `@typedef` itself is exempt; `@param`, `@property`, `@const`,
495
+ // etc. are not type aliases and their `import()` types are reported
496
+ if (hasTypePosition && (!exemptTypedefs || tag.tag !== 'typedef')) {
493
497
  iterateInlineImports(tag);
494
498
  }
495
499
  }