-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-undefined-types
treat normal variables as undefined
in function scope
#1342
Comments
I'm experiencing similar unexpected behavior with |
Thanks Bernholtz :). I didn't see Going to close this issue as "not planned" in a few days if no one else is interested. |
@hecticme This was probably obvious to you since your code is I think it might still be worth leaving your issue open however, because
|
Sure thing. I will let the maintainer decide whether to close it or not. |
Fixed by #1363 |
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: