News for hackers. Stuff that matters.
Re:Why I don't like Tailwind CSS by miklosme on Thursday March 11, 2021 @07:24PM (#26430806)
> 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

[1] settings.json: "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }

There are no comments on this comment yet.