This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 239
Variable is not defined when used in JSX as a parameter #15
Comments
kompot
changed the title
Variable as not defined when used as JSX as a parameter
Variable is not defined when used in JSX as a parameter
Mar 4, 2015
BenoitZugmeyer
added a commit
to BenoitZugmeyer/babel-eslint
that referenced
this issue
Mar 7, 2015
When specifying "module" to escope sourceType option, defined variables will be stored in "module" scope instead of the "global" scope. Because eslint doesn't support module scopes yet, it will ignore this scope when the rule "no-undef" gets the current scope to check for JSX variables definitions. Fixes babel#15 and babel#29
Can you please verify that this issue still exists on 3.0.1? |
Now it's |
Not sure I can do anything about this. I'd recommend using the eslint-plugin-react rules. |
Thanks, worked like a charm! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Given
leads to
The text was updated successfully, but these errors were encountered: