You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
What version of typescript-eslint-parser are you using?
21.0.2
What code were you trying to parse?
importReactfrom'react';declare global {interfaceGlobal{__r: typeofReact;}}// To complement `global.__r = React;`
What did you expect to happen?
No lint errors
What happened?
6:18 error 'React' is not defined no-undef
typescript-eslint-parser/analyze-scope.js:Referencer.visitGlobalAugmentation seems to replace the current scope with the global one, which makes accessing React in the above example
incorrectly say it's not defined.
@mysticatea (via #540): what case does visitGlobalAugmentation solve?