schoero / eslint-plugin-readable-tailwind

ESLint plugin to automatically break up long tailwind class strings into multiple lines for better readability.
MIT License
106 stars 3 forks source link

Usage with eslint 9 / flat config #58

Closed arcs- closed 2 months ago

arcs- commented 2 months ago

In our project we've upgraded to eslint 9 and the new flat config, it seems this plugin does not work yet in that configuration. Is this correct or is there a way I haven't figured out?

schoero commented 2 months ago

It should definitely be compatible with ESLint 9 and the flat config format. You should find a working config in the parsers section for the specific flavor you are using.

Do you experience any errors? If so, can you post the error message and the part of the config for eslint-plugin-readable-tailwind?

arcs- commented 2 months ago

It was my error, I didn't understand the flat config correctly. Thanks for the great plugin!