How to enable imports auto-sorting (+ in VSCode)? #16644
Replies: 3 comments 2 replies
-
|
Same issue here, I am on Zed and this is the main issue. Feels like auto sorting especially imports is half baked. because when I run |
Beta Was this translation helpful? Give feedback.
-
|
Errors reported by oxlint can not be fixed by |
Beta Was this translation helpful? Give feedback.
-
|
Necroing this thead.
This is just a new vite+react+ts project. |
Beta Was this translation helpful? Give feedback.
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