amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
58 stars 24 forks source link

Extra line is getting added on sorting import #48

Closed afzal273 closed 5 years ago

afzal273 commented 5 years ago

Not sure if it's an issue, but when I save file it's adding an extra line between imports. Is it expected behavior? If so how do I turn it off? I don't want lines between my imports.

amatiasq commented 5 years ago

That's the style. You can choose the style with this setting.

I use "style": "module" but if you don't want blank lines I recommend you "style": "module-compact" which only keeps blank lines for imports without identifiers, because in their case order matters.

Or even build a style to make your heart happy :), if you do you can open a PR and add it to the list.