I would like to enable Sort On Save but unfortunately there is a conflict when using Prettier.
Prettier wants long class attributes names' to be on separate lines but Windi will sort them back onto one line.
After saving it appears Windi's sorting is happening after Prettier leading to issues if you are also using ESLint with Prettier.
So one solution, if possible, could be to run the sorter before Prettier or other formatters.
However I think the better solution would be to respect the formatting when sorting class names.
I would like to enable
Sort On Save
but unfortunately there is a conflict when using Prettier. Prettier wants long class attributes names' to be on separate lines but Windi will sort them back onto one line. After saving it appears Windi's sorting is happening after Prettier leading to issues if you are also using ESLint with Prettier.So one solution, if possible, could be to run the sorter before Prettier or other formatters. However I think the better solution would be to respect the formatting when sorting class names.