8 ms·
> my VSCode autoformats the classes to break lines just fine. My only pain point with Tailwind was the order of classes. It helps with readability if the class
by miklosme 6y ago
> my VSCode autoformats the classes to break lines just fine.
My only pain point with Tailwind was the order of classes. It helps with readability if the classes are always in the same order. I just discovered that eslint-plugin-tailwind [0] is solving this exactly. Configuring VSCode to run code formatter and perform ESLint fixes [1] is just an incredible DX.
[0] https://github.com/Idered/eslint-plugin-tailwind https://github.com/Idered/eslint-plugin-tailwind
[1] settings.json: "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }