jsformat-atom icon indicating copy to clipboard operation
jsformat-atom copied to clipboard

ES6 Import Format Not Respected

Open origin1tech opened this issue 9 years ago • 2 comments

Import statements in ES6 get treated as object when written as

 import {SomeClass} form './some/path'

results in:

 import {
   SomeClass
 }from 
 './some/path

Happy to look into this but don't have the time to comb the source, I'd need some sort of pointing in the right direction. I suspect this wouldn't be too involved. I'd didn't noticed but export might be effected also.

Outside of that great little package (wait that sounded bad lol) thx for the hard work!!

origin1tech avatar Oct 11 '15 07:10 origin1tech

@origin1tech we use js-beautify to format JS, so they need to support ES6 for the format to come out properly.

ilanbiala avatar Oct 11 '15 19:10 ilanbiala

I see like I said hadn't had chance to look at source. I'll take a look and see if I can't fix that.

origin1tech avatar Oct 11 '15 19:10 origin1tech