Closed dawsbot closed 4 years ago
This bug actually belongs over on the https://github.com/renke/import-sort repo.
Thanks @ggascoigne, here you have it https://github.com/renke/import-sort/issues/118
I fail to see how that issue is belonging to import-sort: it properly left alone commented import lines without duplicated them. That issue belongs to that repository.
Running prettier on a file with a comment as the last import duplicates that comment
This applies to not just imports, it occurs for any comment which immediately follows your imports without a blank line in-between
Run prettier once
Run prettier three times
Repro Steps
.tsx
file where the last import is commented outnpx prettier --write FILE_NAME
on a file where the imports end in a commented out import