nx icon indicating copy to clipboard operation
nx copied to clipboard

Empty line after imports

Open ph55 opened this issue 8 years ago • 7 comments

[V] Enhancement

Please add empty line after imports in new generated libs' modules. (ng g lib) Currently its added without.

image

ph55 avatar Jul 03 '18 10:07 ph55

Why is an empty line needed?

On Tue, Jul 3, 2018, 5:15 AM Alex Kalmikov [email protected] wrote:

[V] Enhancement

Please add empty line after imports in new generated libs' modules. Currently its added without.

[image: image] https://user-images.githubusercontent.com/1386622/42214073-292f7a7e-7ec3-11e8-8990-0c197c520674.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nrwl/nx/issues/614, or mute the thread https://github.com/notifications/unsubscribe-auth/AAM17XaM41Q6u6dBO-BN4ITlIB3uotg3ks5uC0RbgaJpZM4VAq-9 .

ThomasBurleson avatar Jul 03 '18 10:07 ThomasBurleson

Well it's sort of convention.

Also for consistency. All projects/components/services/modules created by ng g application, ng g c, ng g m and ng g s have empty line after imports.

ph55 avatar Jul 03 '18 11:07 ph55

I agree that it looks cluttered and deviates from the other generated code. It is very low priority, as it has no semantic significance, but I think we should accept a PR on this.

Do you want to create one @ph55?

JamesHenry avatar Jul 16 '18 14:07 JamesHenry

@JamesHenry This is very simple, Can I take it?

cristianmartinez avatar Oct 03 '18 18:10 cristianmartinez

@cristianmartinez Of course! 👍Thank you for taking a look!

FrozenPandaz avatar Oct 03 '18 19:10 FrozenPandaz

Done :)

cristianmartinez avatar Oct 03 '18 19:10 cristianmartinez

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Mar 25 '23 17:03 github-actions[bot]