-
Notifications
You must be signed in to change notification settings - Fork 91
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
[META] support ES6 features! #192
Comments
esprima doc about es6 features: http://esprima.org/doc/es6.html - only partial support for now. |
+1 it will be great to have support for generators so it can be used right now with koajs. |
I started a test branch of rocambole using acorn instead of esprima, but it looks like both projects uses different |
Esprima 2.0 was released 20 days ago, which has (partial) ES6 support. 6 days ago class support was added to the master branch. |
@lukescott just tested |
…h esprima@2.0 behavior (no EmptyStatement between ExpressionStatements). see #192
I just published |
🎉 🎉 🎉 |
Thank you @millermedeiros :) |
What about replacing esprima by babel (which supports more ES6 features afaik) ? |
👍 |
@RaitoBezarius babel uses acorn internally and we would have the same issues with the token ranges (would require changes to the way we detect the start/end of nodes). right now we are trapped with esprima v2. it would be helpful if we had new bugs for each ES6 feature that we don't format properly yet, with input and expected outuput. I don't even know which features are supported by esprima at the moment... |
I believe we covered all the ES6 features on v0.7; if anything else is missing/wrong please open as a separate bugs. Thanks. |
Thank you @millermedeiros :) |
good work 👍 |
Is there possibility that esformatter does not support static class properties (it is included by Babel in stage 0)? |
as long as it is supported by esprima it should be fairly easy to add it. (eg.
ArrowFunctionExpression
)The text was updated successfully, but these errors were encountered: