Skip to content
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

'namespace' rule doesn't check jsx #1150

Closed
jf248 opened this issue Aug 2, 2018 · 0 comments
Closed

'namespace' rule doesn't check jsx #1150

jf248 opened this issue Aug 2, 2018 · 0 comments

Comments

@jf248
Copy link
Contributor

jf248 commented Aug 2, 2018

The namespace rule doesn't raise an error for:

import * as MyComponents from './my-components'
const Foo = <MyComponents.DoesNotExist/>

I think it would be helpful if it did.

(It doesn't because here MyComponents.DoesNotExist is a JSXMemberExpression which the rule doesn't check.)

Submitting a PR to 'fix' this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant