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

[Feature Request]: Sort order configuration #47

Closed
ItaiEsquare opened this issue Jan 26, 2022 · 1 comment
Closed

[Feature Request]: Sort order configuration #47

ItaiEsquare opened this issue Jan 26, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@ItaiEsquare
Copy link

There are cases when an import must be on top. For example, in my project,'jest-preset-angular/setup-jest' must be on top, otherwise testing doesn't work.
The only way to prevent this is to use // organize-imports-ignore, which ignores the whole file and needs to be added manually.
Adding configuration similar to this would be preferable: https://github.com/trivago/prettier-plugin-sort-imports#importorder

@simonhaenisch simonhaenisch added the duplicate This issue or pull request already exists label Jan 27, 2022
@simonhaenisch
Copy link
Owner

Basically the same as #46, please see my answer there. TL;DR: this plugin doesn't really work for that use-case, it's for projects with side-effects free imports, or where side-effect imports are isolated into helper modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants