DrJume / eslint-plugin-tailwindcss-vite-sfc-issue

Demo for https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/59

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-tailwindcss-vite-sfc-issue

While developing, eslint throws 'tailwindcss/no-custom-classname' warnings/errors, even if the custom classes are defined in the Vue SFC.

The problem goes away after a 'vite build'. It seems, that the dist/ directory plays an important role here. In vite dev mode, no dist/ directory is created - instead everything goes directly to the browser.

Check with 'npm run lint'.

About

Demo for https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/59

License:MIT License


Languages

Language:Vue 58.3%Language:JavaScript 23.0%Language:HTML 12.6%Language:TypeScript 6.2%