diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 75fc7cea..b0e48fea 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -91,6 +91,7 @@ module.exports = { "plugin:@typescript-eslint/recommended-type-checked", "plugin:import/recommended", "plugin:import/typescript", + "plugin:tailwindcss/recommended", ], parser: "@typescript-eslint/parser", parserOptions: { @@ -111,6 +112,9 @@ module.exports = { project: ["**/tsconfig.json"], }, }, + tailwindcss: { + whitelist: ["ds\\-(.*)", "plausible\\-(.*)", "parent-bg-blue"], + }, }, rules: { "@typescript-eslint/ban-ts-comment": "warn", diff --git a/package-lock.json b/package-lock.json index 99654413..8988fd2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "@typescript-eslint/parser": "^8.21.0", "@vitejs/plugin-react": "^4.3.0", "autoprefixer": "^10.4.16", - "eslint": "^8.57.0", + "eslint": "^8.57.1", "eslint-config-prettier": "^10.0.1", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.31.0", @@ -40,6 +40,7 @@ "eslint-plugin-react": "^7.37.0", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.3", + "eslint-plugin-tailwindcss": "^3.18.0", "eslint-plugin-testing-library": "^7.0.0", "license-checker": "^25.0.0", "prettier": "^3.4.1", @@ -7593,6 +7594,23 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-plugin-tailwindcss": { + "version": "3.18.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-tailwindcss/-/eslint-plugin-tailwindcss-3.18.0.tgz", + "integrity": "sha512-PQDU4ZMzFH0eb2DrfHPpbgo87Zgg2EXSMOj1NSfzdZm+aJzpuwGerfowMIaVehSREEa0idbf/eoNYAOHSJoDAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-glob": "^3.2.5", + "postcss": "^8.4.4" + }, + "engines": { + "node": ">=18.12.0" + }, + "peerDependencies": { + "tailwindcss": "^3.4.0" + } + }, "node_modules/eslint-plugin-testing-library": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-7.1.1.tgz", diff --git a/package.json b/package.json index 13fcc6df..457a97ff 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@typescript-eslint/parser": "^8.21.0", "@vitejs/plugin-react": "^4.3.0", "autoprefixer": "^10.4.16", - "eslint": "^8.57.0", + "eslint": "^8.57.1", "eslint-config-prettier": "^10.0.1", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.31.0", @@ -62,6 +62,7 @@ "eslint-plugin-react": "^7.37.0", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.3", + "eslint-plugin-tailwindcss": "^3.18.0", "eslint-plugin-testing-library": "^7.0.0", "license-checker": "^25.0.0", "prettier": "^3.4.1", diff --git a/packages/dito/app/components/Accordion.tsx b/packages/dito/app/components/Accordion.tsx index ca25692d..82e19cb3 100644 --- a/packages/dito/app/components/Accordion.tsx +++ b/packages/dito/app/components/Accordion.tsx @@ -4,7 +4,7 @@ export default function Accordion({ items, }: Readonly<{ items: AccordionItemProps[] }>) { return ( -