We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-undefined-types
1 parent 0a30832 commit 1bef636Copy full SHA for 1bef636
src/rules/noUndefinedTypes.js
@@ -261,7 +261,12 @@ export default iterateJsdoc(({
261
.concat(importTags)
262
.concat(definedTypes)
263
.concat(/** @type {string[]} */ (definedPreferredTypes))
264
- .concat(...getValidRuntimeIdentifiers(node && sourceCode.getScope(node)))
+ .concat(...getValidRuntimeIdentifiers(node && (
265
+ (sourceCode.getScope &&
266
+ /* c8 ignore next 2 */
267
+ sourceCode.getScope(node)) ||
268
+ context.getScope()
269
+ )))
270
.concat(
271
settings.mode === 'jsdoc' ?
272
[] :
0 commit comments