-
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 Module Loading Object Destructuring newlines #668
Comments
Thanks! Poor formatting but not breaking, right? |
No it certainly still runs just fine, I'd say it is best classed as an ES6 issue yeah. |
#315 Would fix this too I think |
Partly, but |
@bitwiseman I've tried to read the code and figure out how to implement #315, but it's way too much for a initial read. If you point me how it's done maybe I can help :) |
We treat all braces the basically the same when talking about expand or collapse. |
I see alot of places where people don't expect a
I think any "Objects" that consist of only Literals should not be broken, this would cover beautification of imports, exports, as well as shorthand objects where the Literal name is expanded, I think in all these situations it is expected to have a single line. Maybe a config for
|
I currently use a naive patch as a workaround until a proper implementation. It works fine for me so far.
|
@brantwedel - Interesting idea. @loopmode - thanks for the workaround. As you say, primitive and pragmatic. 😄 |
@loopmode Great fix, works in atom |
the fix works, thanks |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Module_loading
Becomes
The text was updated successfully, but these errors were encountered: