Skip to content

Commit f32989c

Browse files
authored
fix(no-undefined-types): workaround parse-imports-exports bug in handling trailing whitespace; fixes #1373 (#1384)
1 parent 65b0dc0 commit f32989c

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
@@ -151,7 +151,7 @@ export default iterateJsdoc(({
151151
? `${typePart}${name} ${description}`
152152
: `${typePart}${name}`);
153153

154-
const importsExports = parseImportsExports(imprt);
154+
const importsExports = parseImportsExports(imprt.trim());
155155

156156
const types = [];
157157
const namedImports = Object.values(importsExports.namedImports || {})[0]?.[0];

0 commit comments

Comments
 (0)