-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dependency parser doesn't respect ecmaFeatures #94
Comments
Weird. Not sure why it wouldn't be picked up. I'll add a test and scope it out. |
Test passes on my machine OS X w/ Node 4. Can you fork Or send me the |
Ah sorry, it actually appears that JSX is the cause. App.js
index.js
.eslintrc
eslint ./index.js
|
Ah, yeah, you have to configure the parser for JSX. It only parses spec ES6 by default. If you look at the |
Actually, I'll take another look and see if I can read the |
default
rule doesn't work with functions
Yep, plugin context includes I think I may actually use an |
Awesome! |
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This style of code is very common in projects using React and higher order components. This rule doesn't seem to detect the default export in this case.
The text was updated successfully, but these errors were encountered: