Open jmbromley opened 5 years ago
I was quite surprised to see that elm-format
mixed my own imports in together with those from the standard library. It seems like what @jmbromley is suggesting would give some power back to the user. (Although I recognize that's not always desirable.)
I like to be able to split my imports into core libraries, external dependencies (i.e. from elm packages), and internal (i.e. unpublished) dependencies. For example:
However with the latest changes to elm-format (specifically the ordering of imports and removal of duplicates) this is no longer possible, as elm-format reorders all my import alphabetically and places them before the dividing comment lines, leaving the comments 'dangling' at the end.
Would it be possible to not reorder imports across comment lines, to enable people to group their imports into meaningful sections? Or would this break something?