diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d1d598b..3bbe8c0 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -23,7 +23,7 @@ jobs: run: pnpm format - name: 🏷️ Check Types - run: pnpm check-types + run: pnpm typecheck - name: ✅ Test run: pnpm coverage diff --git a/.vscode/settings.json b/.vscode/settings.json index d2f34e2..39b1264 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,6 +8,7 @@ "Parens", "pnpm", "tailwindcss", + "typecheck", "vite", "vitest", "zustand" diff --git a/README.md b/README.md index f6afc8e..c4e973c 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,12 @@ pnpm format _you can run `pnpm format:fix` to fix all format errors_ +To check types, run the following command: + +``` +pnpm typecheck +``` + To interactively update dependencies, run the following command: ``` diff --git a/package.json b/package.json index 0c6d9a9..bfcb9ff 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "check-types": "tsc", + "typecheck": "tsc", "lint": "eslint --color .", "lint:fix": "pnpm lint --fix", "format": "prettier --check .", diff --git a/tsconfig.json b/tsconfig.json index f5d331a..603d15f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,19 @@ { "compilerOptions": { - "allowJs": false, - "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "skipLibCheck": true, + "target": "es2022", + "allowJs": true, + "moduleDetection": "force", + "isolatedModules": true, + "jsx": "react-jsx", "lib": ["DOM", "DOM.Iterable", "ESNext"], "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "Bundler", "noEmit": true, "resolveJsonModule": true, - "target": "ESNext", - "useDefineForClassFields": true, - "esModuleInterop": true, - "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, "strict": true, @@ -26,8 +28,6 @@ "noUnusedLocals": true, "noUnusedParameters": true, - "verbatimModuleSyntax": true, - "baseUrl": ".", "paths": { "@/*": ["src/*"]