francoismassart / eslint-plugin-tailwindcss

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

[Feature request] Support tailwind.config.ts #156

Closed alvis closed 1 year ago

alvis commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, eslint-plugin-tailwindcss automatically requires tailwind.config.js in CommonJS format and perform check against the config. However, if the config is in typescript or ESM format, it fails silently since require doesn't work with these files.

Describe the solution you'd like No change needed. Just that eslint-plugin-tailwindcss would also recognisetailwind.config.ts alongside tailwind.config.js

francoismassart commented 2 years ago

Hi @alvis, can you provide a demo repo demonstrating what you are trying to accomplish ? Thanks

francoismassart commented 1 year ago

@alvis I guess this issue can be closed since the previous 3.12.0 release supports ESM and TypeScript config files.

Can you confirm and close the issue if it is working for you ?

alvis commented 1 year ago

Hi @francoismassart! I double-checked with my code base, and I'm happy to confirm that it's working on 3.12. Thanks for following up :) 👍🏼