We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e510e5 commit 7c004d3Copy full SHA for 7c004d3
lib/rules/jsx-no-undef.js
@@ -38,6 +38,10 @@ module.exports = function(context) {
38
}
39
if (scope.childScopes.length) {
40
variables = scope.childScopes[0].variables.concat(variables);
41
+ // Temporary fix for babel-eslint
42
+ if (scope.childScopes[0].childScopes.length) {
43
+ variables = scope.childScopes[0].childScopes[0].variables.concat(variables);
44
+ }
45
46
47
for (i = 0, len = variables.length; i < len; i++) {
0 commit comments