eslint-plugin-tailwindcss does not work properly with extension
visual studio code - Linting not working from TailwindCSS v4 when using TailwindCSS IntelliSense - Stack Overflow
Has anyone figured out how to apply the eslint tailwindcss plugin to blade files?
Problem with eslint and prettier-plugin-tailwindcss [Prettier Plugin]
Videos
» npm install eslint-plugin-tailwindcss
» npm install eslint-plugin-better-tailwindcss
I'm talking about this plugin: https://github.com/francoismassart/eslint-plugin-tailwindcss that helps with ordering your classnames correctly and adds a bunch of other useful checks.
Example below:
I've got it working fine for .vue files but I can't seem to get it to work for .blade.php files? Is it even possible? For context I am using Phpstorm.
Create a prettier.config.js file in your root folder and add the following line:
module.exports = { plugins: ['prettier-plugin-tailwindcss'], }
Add to your .eslintrc
{ "extends": ["plugin:tailwindcss/recommended"] }
More info here: https://www.npmjs.com/package/eslint-plugin-tailwindcss
» npm install @poupe/eslint-plugin-tailwindcss
Last year, I shared a post here with my favorite Tailwind CSS tips. Since a lot of folks said it helped them clean up their code or discover new utility patterns, I've now fully updated the article for v4.
If you're upgrading or just want to sharpen your Tailwind CSS skills, give it a read:
Tailwind CSS v4 tips every developer should know
Would love to hear what you think or what new things you discovered.
» npm install eslint-plugin-readable-tailwind