IanVS / prettier-plugin-sort-imports

An opinionated but flexible prettier plugin to sort import statements
Apache License 2.0
951 stars 21 forks source link

Prevent comment gap when re-arranging first import #85

Closed IanVS closed 1 year ago

IanVS commented 1 year ago

This should address https://github.com/IanVS/prettier-plugin-sort-imports/issues/54#issuecomment-1548967488.

Note, we don't currently have a way to force or remove a line at the top, under top-of-file comments, but I think this is okay. We preserve whatever the user had before, which seems fine. We can re-evaluate in the future if we hear from users.