Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to ignore files e.g. node_modules #38

Open
OliverJAsh opened this issue Mar 6, 2019 · 6 comments
Open

Option to ignore files e.g. node_modules #38

OliverJAsh opened this issue Mar 6, 2019 · 6 comments
Labels

Comments

@OliverJAsh
Copy link

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
Copy link
Author

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

@amatiasq
Copy link
Owner

amatiasq commented Mar 6, 2019

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

@OliverJAsh
Copy link
Author

Workaround: save without formatting

@amatiasq amatiasq added the bug label Jul 24, 2019
@mweber-ak
Copy link

Any update on this?

@jquense
Copy link
Collaborator

jquense commented Nov 21, 2019

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

@derwaldgeist
Copy link

derwaldgeist commented Oct 31, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants