-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ES6 concise method not propely indented #647
Comments
ES6 is only partially supported and lower priority. PRs welcome. |
👍 |
Implementation notes: we currently recognize ObjectLiterals based on |
This is actually a big bug for ember developers, not an enhancement. In ember, all code is defined as a module therefore all code is defined as an object literal. I just ran into this an it's making me look around for a beautifier that supports ES6 due to the pain. :/ |
@mike-post, |
+1 for ember issues. Never looked at this project before but maybe i'll take a swing at it. |
Looks like this might be fixed already in the upcoming release. Try out your code on jsbeautifier.org. |
Yup, this is covered by the fix for #602 |
In an object literal, classic methods are correctly indented :
Concise methods does not work that well :
After the first method, there's one additional indent. Not a major issue, but it makes objects look weird.
The text was updated successfully, but these errors were encountered: