From 9b42102181854d6ee8167114b297014f30a0be91 Mon Sep 17 00:00:00 2001 From: Kalidou Diagne Date: Fri, 5 Apr 2024 18:38:20 +0200 Subject: [PATCH] add tailwind & update ts config --- app/page.tsx | 9 ++------- package-lock.json | 2 +- package.json | 6 +++--- tsconfig.json | 31 ++++++++----------------------- 4 files changed, 14 insertions(+), 34 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 558ef0b..f16d3d8 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -21,10 +21,7 @@ export default function Home() { - +
@@ -34,9 +31,7 @@ export default function Home() {
{icon} - - {title} - + {title}
); diff --git a/package-lock.json b/package-lock.json index 921c38f..2a5df09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "eslint": "^8", "eslint-config-next": "14.1.4", "postcss": "^8", - "tailwindcss": "^3.3.0", + "tailwindcss": "^3.4.3", "typescript": "^5" } }, diff --git a/package.json b/package.json index 3e1db7b..5c42f89 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "next": "14.1.4", "react": "^18.1.0", "react-dom": "^18.1.0", - "react-router-dom": "^6.3.0", "react-markdown": "^9.0.1", + "react-router-dom": "^6.3.0", "remark-gfm": "^4.0.0", "tailwind-merge": "^2.2.2" }, @@ -34,15 +34,15 @@ ] }, "devDependencies": { + "@types/jest": "^27.5.1", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", - "@types/jest": "^27.5.1", "autoprefixer": "^10.0.1", "eslint": "^8", "eslint-config-next": "14.1.4", "postcss": "^8", - "tailwindcss": "^3.3.0", + "tailwindcss": "^3.4.3", "typescript": "^5" } } diff --git a/tsconfig.json b/tsconfig.json index c17c0b2..e7ff90f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,23 +1,17 @@ { "compilerOptions": { - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, "strict": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, + "noEmit": true, + "esModuleInterop": true, "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "noEmit": false, "jsx": "preserve", + "incremental": true, "plugins": [ { "name": "next" @@ -25,17 +19,8 @@ ], "paths": { "@/*": ["./*"] - }, - "incremental": true + } }, - "include": [ - "src", - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] }