eslint plugin for ordering imports

Hey guys! Just wondering how people are sorting imports on save lol
Solution:
trivago's is out of date it seems, I used @ianvs/prettier-plugin-sort-imports
Jump to solution
5 Replies
Neto
Neto2y ago
prettier + sort plugin
Kyle
KyleOP2y ago
I guess I just had to tinker with it until it suddenly decided to work or something took forever for no reason
Benjamin
Benjamin2y ago
You can use eslint-plugin-simple-import-sort but I advise you to use Prettier instead as sorting imports should be a matter of styling, not linting. Here is a prettier plugin to do so: @trivago/prettier-plugin-sort-imports See Theo's video about this subject 😉
Solution
Kyle
Kyle2y ago
trivago's is out of date it seems, I used @ianvs/prettier-plugin-sort-imports
Benjamin
Benjamin2y ago
Thanks for the update, I'll update my projects. 👍
Want results from more Discord servers?
Add your server