-
Notifications
You must be signed in to change notification settings - Fork 23
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/7 imports getting formatted #9
Comments
I think this is a |
as an ugly workaround when you pass the document to js-buityfy you could just skip lines if they start with "import". But if js-beautify would allow you to make it clean that would be perfect :) |
@MateuszTrN Try to add |
Hi @Lonefy, Sorry for late answer. Indeed this helped. Thanks! |
This seems to still be an issue. The 'collapse-preserve-inline' param no longer disables this behavior. Uninstalled for the time being but would love a resolution. |
If Interested I am trying to fix the problem with a custom extension, Basically my extension calls HookyQR.beautify-0.7.3 or Lonefy (changeable by configuration)
into for now is important to finish the instruction with semicolon ; |
@Lonefy This function forces the importmap to be formatted into one line, which makes it difficult to read
|
this ext is marvelous but I have one problem. I'm using ES6/7 syntax and when I format code all my imports are getting a bit messed up (actually they're getting cleaned up but I'd like them kept as they were).
Example:
import { Some1, Some2 } from Something //this is what I want
is turning into:
which is really painful when I implement some form and use react bootstrap components because there's 5-10 elements just for this one.
The text was updated successfully, but these errors were encountered: