Possible to disable parts of prettier-plugin-organize-imports?
jasonlong opened this issue · comments
@bogdansoare Is it possible to turn off the feature of prettier-plugin-organize-imports
that auto deletes unused imports? It drives me crazy how you can type an import and have it disappear immediately because it's not being used yet. I've heard this from a couple of other people who have worked on the app.
Otherwise, it would be nice to find a different config to handle unused imports. I can share what we use on the PlanetScale app if it's helpful.
Sure, we can disable it, I totally understand the pain of having unused imports disappear.
We can rely on VS Code's organize imports for now and not force it with prettier.
It would be great to find out what you use at PlanetScale 👍
I'm all for automated sorting of imports. We're currently using eslint-plugin-import and when I set this up a while back I just started with this person's config (no strong opinions on the specific sorting rules).