-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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-undef does not check Node.js scope for variables used in JSX #2093
Comments
+1, have same problem |
Can you generalize this to something that isn't related to JSX/React? Right now, this is the correct behavior for ESLint without any plugins. |
This looks like bug in babel-eslint. Non-JSX code checking works well. |
Ah, I thought that had been removed in the last release. We really shouldn't be checking JSX tag names in ESLint, as that's part of React semantics. So I think what we should be doing here is removing that functionality from |
Sounds good to me. This way |
👍 |
Working on this. |
Breaking: Remove JSX support from no-undef (fixes #2093)
no-undef does not check Node.js scope for variables used in JSX
test.js
.eslintrc
Output:
test.js 3:18 error 'App' is not defined no-undef ✖ 1 problem (1 error, 0 warnings)
The text was updated successfully, but these errors were encountered: