-
Notifications
You must be signed in to change notification settings - Fork 78
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
Unexpected reserved word #138
Comments
Same here |
same here |
running into same issue |
The actual problem seems to be, that fixmyjs is using esprima ^1.2.2, that does not support ES6. Newer versions of esprima support it, so maybe a version bump to version 2 of esprima might fix this (although I bet, that they have breaking changes...). I might give it a try and submit a PR, when it is working... |
FWIW: The v2.0 branch does indeed use recast and has no problems at all with ES6 code. You can give it a try; it is not on NPM though. If only the documentation would have said something about the changed semantics for specifying options... |
It looks like |
Published 2.0.0 to npm. We should probably switch out the parser to something that has better ES-next support like babel's or one of acorn's forks. |
I use iojs with ES6 enabled for my project.
When I use fixmyjs, I ma getting "Unexpected reserved word"
With flag --legacy everything is fine. But seems like legacy doesn't fix double quotes issue.
Alex
The text was updated successfully, but these errors were encountered: