amatiasq / vsc-sort-imports

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

Option to ignore files e.g. `node_modules` #38

Open OliverJAsh opened 5 years ago

OliverJAsh commented 5 years ago

I use the sort-imports.on-save setting, which is great, however I don't want it to apply when editing a file in node_modules. Is this possible or do we need a new option?

OliverJAsh commented 5 years ago

It seems the CLI ignores node_modules by default, so perhaps the VS Code extension should do the same.

amatiasq commented 5 years ago

OMG I wasn't aware of this. This should not only be an option but also enabled by default.

OliverJAsh commented 5 years ago

Workaround: save without formatting

mweber-ak commented 4 years ago

Any update on this?

jquense commented 4 years ago

this would really need proper support in sort-imports itself, e.g. via an ignore file.

derwaldgeist commented 3 years ago

I would love to see this feature as well. I quite often fork libraries and don't want to mess with their coding style. Although it's possible to save without formatting, you always have to think about it. Having a .sortimportsignore would help, just like with .eslintignore and .prettierignore.