Removing unused imports
A rather annoying and controversial thing that was built into version 7.3.2.
As far as I can see, this is disabled by default in the latest version. Maybe someone will tell you what was responsible for enabling it in older versions?
Probably something connected with "prettier-plugin-organize-imports", but i'm not sure
2 Replies
with
prettier-plugin-organize-imports
you can set organizeImportsSkipDestructiveCodeActions: true
in your prettier config to stop it removing unused importsSaw that in some issue. Tried, but it did not solve an issue. Will try one more tme