francoismassart / eslint-plugin-tailwindcss

ESLint plugin for Tailwind CSS usage
https://www.npmjs.com/package/eslint-plugin-tailwindcss
MIT License
1.47k stars 70 forks source link

[Feature request] HTML support in Flat config #309

Closed LatenPath closed 8 months ago

LatenPath commented 8 months ago

Is your feature request related to a problem? Please describe. Currently, the plugin not supported flat config.

Describe the solution you'd like I want to use it not only for js/ts file, but also for html file with flat config.

Additional context This is my flat config look like: image

And Compat solution made plugin work with js file: image

But I want it also work in HTML file: image

I try import the parser like in document: image image

But it throw the error: image

Please help me 😢

mcfarljw commented 8 months ago

You can find a workaround here https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/280.

LatenPath commented 8 months ago

I can't solve my issue with Compat solution. I will wait for Flat config support in future.