We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems to be a regression from #435.
This warns unexpectedly:
<foo.bar.Component />
This doesn't warn:
<foo.Component />
The only way I can find around this is to alias the component and use the alias in the react code.
The text was updated successfully, but these errors were encountered:
Here's a diff for test cases against current master:
diff --git a/tests/lib/rules/jsx-no-undef.js b/tests/lib/rules/jsx-no-undef.js index e1e9c17..355ae41 100644 --- a/tests/lib/rules/jsx-no-undef.js +++ b/tests/lib/rules/jsx-no-undef.js @@ -34,6 +34,15 @@ ruleTester.run('jsx-no-undef', rule, { code: '/*eslint no-undef:1*/ var React, App; React.render(<App />);', parserOptions: parserOptions }, { + code: '/*eslint no-undef:1*/ var React, app; React.render(<app />);', + parserOptions: parserOptions + }, { + code: '/*eslint no-undef:1*/ var React, app; React.render(<app.Foo />);', + parserOptions: parserOptions + }, { + code: '/*eslint no-undef:1*/ var React, app; React.render(<app.fake.Foo />);', + parserOptions: parserOptions + }, { code: '/*eslint no-undef:1*/ var React; React.render(<img />);', parserOptions: parserOptions }, {
The app.fake.Foo test fails.
app.fake.Foo
Sorry, something went wrong.
I've seen this with <this.state.Handler /> as well
<this.state.Handler />
ebab180
No branches or pull requests
Seems to be a regression from #435.
This warns unexpectedly:
<foo.bar.Component />
This doesn't warn:
The only way I can find around this is to alias the component and use the alias in the react code.
The text was updated successfully, but these errors were encountered: