gandm / language-babel

ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
https://atom.io/packages/language-babel
MIT License
476 stars 83 forks source link

Preserve line breaks? #355

Closed JeffML closed 7 years ago

JeffML commented 7 years ago

this packages seems to want to push chained functions onto one line:

f("foo")
.then(result => {...})
.then(data => {...})
.catch(e => {console.error(e)})

becomes: f("foo").then(result={...}).then(data => {...}).catch(...

I hate that. Can I turn that off with "Preserve Line Breaks" or something?

gandm commented 7 years ago

Nothing to do with my package. I don't merge lines. Maybe another package such as atom beutify.

Sent from my Windows Phone


From: Jeff Lowerymailto:notifications@github.com Sent: ‎24/‎04/‎2017 01:24 To: gandm/language-babelmailto:language-babel@noreply.github.com Cc: Subscribedmailto:subscribed@noreply.github.com Subject: [gandm/language-babel] Preserve line breaks? (#355)

this packages seems to want to push chained functions onto one line:

f("foo") .then(result) .then(data) .catch(e => {console.error(e)})

becomes: f("foo").then(result).then(data).catch(...

I hate that. Can I turn that off with "Preserve Line Breaks" or something?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/gandm/language-babel/issues/355, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACNMFWkmDwiYW6DtJGgxV4VLCCEwA8E8ks5ry-vEgaJpZM4NFltu.

gandm commented 7 years ago

I know that prettier does that type of formatting.

JeffML commented 7 years ago

It was atom-beautify that was doing it, thanks for the info.