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
|
@@ -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
|
|
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
|
-
|
|
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
|
}
|