How to enable imports auto-sorting (+ in VSCode)? #16644
Unanswered
ClementNerma
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I've recently started using
oxfmt(0.17.0) and I can't for the life of me figure how to enable imports auto-sorting.I've tried adding the
experimentalSortImportsto my.oxfmtrc.json, with various values, but the only one that seems to have any effect isnewlinesBetween. No other option seem to work.The imports are not sorted, whether I use VSCode or the CLI. Only a new line is added between import groups, but that's all, and
oxlintrightfully complains about imports not being sorted afterwards.How can I solve this? I've read the documentation and browse several issues on the repo, but I can't seem to find an answer that works.
Beta Was this translation helpful? Give feedback.
All reactions