diff --git a/.prettierrc b/.prettierrc index 1d5c2e7..91e57d5 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,5 +6,6 @@ "tabWidth": 2, "useTabs": false, "jsxSingleQuote": false, - "arrowParens": "always" + "arrowParens": "always", + "plugins": ["prettier-plugin-tailwindcss"] } diff --git a/package.json b/package.json index d4da620..4c0193c 100644 --- a/package.json +++ b/package.json @@ -21,15 +21,17 @@ "react-dom": "18.3.1" }, "devDependencies": { + "@types/node": "22.7.4", "@types/react": "18.3.5", "@types/react-dom": "18.3.0", "@vitejs/plugin-react-swc": "3.7.0", - "@woohm402/eslint-config-react": "0.6.1", + "@woohm402/eslint-config-react": "0.7.1", "autoprefixer": "10.4.20", "eslint": "9.10.0", "knip": "5.30.2", "postcss": "8.4.45", "prettier": "3.3.3", + "prettier-plugin-tailwindcss": "0.6.9", "tailwindcss": "3.4.11", "typescript": "5.6.2", "vite": "5.4.5" diff --git a/src/App.tsx b/src/App.tsx index 77716cc..ea52917 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -11,7 +11,6 @@ import { useKeyPress } from '@/hooks/useKeyPress'; import { loadGameState, saveGameState } from '@/utils/localStorage'; import { addRandomBlock, - getCellColor, isGameLose, isGameWin, type Map2048, @@ -50,7 +49,7 @@ export const App = () => { const newGameButton = (text: string) => { return (