-
-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi 👋
I'm currently using Tailwind CSS v4 with React + TypeScript + Vite.
I noticed that eslint-plugin-tailwindcss doesn't seem to recognize variables or classes from my index.css anymore, since Tailwind 4 no longer uses a tailwind.config.js.
Here’s my setup:
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { globalIgnores } from 'eslint/config'
import tailwind from "eslint-plugin-tailwindcss";
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
tailwind.configs["flat/recommended"],
],
settings: {
tailwindcss: {
config:'./index.css',
},
},
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])Is there any temporary workaround or configuration recommended for projects using Tailwind v4 (with no config file)?
Or should we simply disable the plugin until official support lands?
john-wood-arondite
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working