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 has been archived by the owner on Aug 18, 2021. It is now read-only.
This is a work-around for babel#66, extending the monkeypatch to escope to ensure it does not traverse into TypeAlias nodes and incorrectly infer a reference.
Running eslint with babel-eslint and using flow types:
will fail the
no-undef
lint with'SomeNewType' is not defined
Appears to be because
TypeAlias
AST node walks over theid
field which isIdentifier
and eslint mistakes it for an undefined variable usage.Not sure how exactly to proceed with a fix for this - should babel process out the flow annotations from the AST before passing to eslint?
The text was updated successfully, but these errors were encountered: