Skip to content

Commit 9124b7b

Browse files
committed
fix(no-undefined-types): surface jsdoctypeparser update to avoid errors with empty variadic argument; closes #419
Also removes some code from `check-types` which had only been needed absent the fix (and which now would otherwise be causing coverage failure)
1 parent eaf41ed commit 9124b7b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"comment-parser": "^0.7.0",
99
"debug": "^4.1.1",
10-
"jsdoctypeparser": "^5.1.1",
10+
"jsdoctypeparser": "^6.0.0",
1111
"lodash": "^4.17.15",
1212
"object.entries-ponyfill": "^1.0.1",
1313
"regextras": "^0.6.1"

src/rules/checkTypes.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ export default iterateJsdoc(({
128128
};
129129

130130
traverse(typeAst, (node, parentName, parentNode) => {
131-
if (!node) {
132-
return;
133-
}
134131
const {type, name} = node;
135132
if (!['NAME', 'ANY'].includes(type)) {
136133
return;

0 commit comments

Comments
 (0)