amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
59 stars 24 forks source link

Dont sort CSS imports #104

Open SonicMagna opened 1 year ago

SonicMagna commented 1 year ago

Using VS Code 1.66.2 sort-imports 6.3.1 React project To me this is such an obvious thing I feel like I'm missing an instruction somewhere... The problem I want to address is prevent sort-imports from moving my CSS imports. I need a config option to ignore CSS imports completely. This type of import always ends with .css I've tried out the various styles as shown on the main page, and the one that is a best match for my style is 'module-scoped'. (BTW- a couple of those links are broken.) In addition to putting my CSS in the order required for desired results, I always put them at the end of my import list. But this sort-imports moves all CSS imports to top of import list, it adds a blank line between each one, and sorts them. This is bad. CSS import order matters and I can't use this if it does not have an way of properly handling CSS imports. Am I using it wrong?