-
-
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
[import/default] False positive when parsing a file using ES7. #36
Comments
There is a I just added some explicit tests (with your example file) and the ESLint tests report that |
I will investigate making |
Thanks! That would be great, the rule is super useful. |
Pushed with 0.7.2. Haven't tested significantly, but given that ESLint integrates with babel-eslint in the same way, I have high hopes! |
@benmosher I finally had a chance to try this out. This is seriously awesome. It's parsing using If you're ever in L.A. I will gladly take you out for 🍻. |
😎
|
When importing a module that contains stage 0 proposals, e.g.:
I get the following false-positive:
I dug into the code a bit and found Espree has issues parsing experimental code:
Note: We use babel-eslint in order to support linting with experimental code.
I'm not asking that you support experimental code (although it would be nice!), but it would be great if the parsing error was surfaced, or at the very least a note that this rule does not support experimental code.
The text was updated successfully, but these errors were encountered: