Skip to content

Commit c206a9e

Browse files
bary12gajus
authored andcommitted
fix: no-undefined-types crashing when jsdoc has no tags (#69)
1 parent 14d7f22 commit c206a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/noUndefinedTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default iterateJsdoc(({
1919
})
2020
.map(parseComment)
2121
.flatMap((doc) => {
22-
return doc.tags.filter((tag) => {
22+
return (doc.tags || []).filter((tag) => {
2323
return tag.tag === 'typedef';
2424
});
2525
})

0 commit comments

Comments
 (0)