no-undefined-types
treat normal variables as undefined
in function scope
#1342
Labels
no-undefined-types
treat normal variables as undefined
in function scope
#1342
Reproduction: https://stackblitz.com/edit/vitejs-vite-d1gqkb
Expected behavior
I expected that this code snippet does not cause any lint error:
Actual behavior
In the above snippet,
hashmap
is reported asundefined
byjsdoc/no-undefined-types
. This only happens inside the function scope, please take a look at the reproduction playground for more details. Intellisense was still working properly.ESLint Config
ESLint sample
See → https://stackblitz.com/edit/vitejs-vite-d1gqkb or check the code in "Expected behavior".
Environment
eslint-plugin-jsdoc
version: 50.5.0The text was updated successfully, but these errors were encountered: