-
Notifications
You must be signed in to change notification settings - Fork 71
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
Determine (un)supported ES6 features #175
Comments
Seeing a few issues already for unsupported ES6 features:
I'm sure I'll find more as I go along. |
One I found this morning: assigning a class definition breaks the indentation. Input: exports.Test = class Test { foo() { console.log('bar'); } }; Expected Output: exports.Test = class Test {
foo() {
console.log('bar');
}
}; Current Output: exports.Test = class Test {
foo() {
console.log('bar');
}}; |
Hey @christopherobin thank you for reporting this. |
Formatting fails for any of the above lines as well. |
@sowdri Your first example is a bit strange: what syntax feature would you expect to get there? |
To try and help determine if #122 can be closed or not. It would be nice to add examples of some major ES6 features into the
examples
directory to help ensure thatjsfmt
can handle everything just fine.There is probably a better place to grab examples from, but I was just going to grab most of the examples from http://es6-features.org/ and toss them into
examples/es6
.Open to thoughts/suggestions from those who are using ES6 much more than I am.
The text was updated successfully, but these errors were encountered: