diff --git a/package.json b/package.json index 894ce0c..39c67e0 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "typescript": "^6.0.2" }, "devDependencies": { + "@tsconfig/next": "^2.0.6", "knip": "^6.11.0", "msw": "^2.12.14", "oxfmt": "^0.42.0", diff --git a/tsconfig.json b/tsconfig.json index 818766f..a984b42 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,12 @@ { + "extends": "@tsconfig/next/tsconfig.json", "compilerOptions": { - "target": "esnext", - "module": "commonjs", - "noEmit": true, - "strict": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, - "lib": ["dom", "dom.iterable", "esnext"], "allowJs": false, - "incremental": false, - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve" + "tsBuildInfoFile": "node_modules/.cache/.tsbuildinfo", + "forceConsistentCasingInFileNames": true, + "strict": true, + "moduleResolution": "bundler" }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] } diff --git a/yarn.lock b/yarn.lock index d768563..8b224aa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1149,6 +1149,11 @@ dependencies: defer-to-connect "^1.0.1" +"@tsconfig/next@^2.0.6": + version "2.0.6" + resolved "https://registry.yarnpkg.com/@tsconfig/next/-/next-2.0.6.tgz#e0ba358eed17da684c6e013a14e1c53fc6cd4822" + integrity sha512-C6eZoNyAMKv2UvzDZqcp8zXPviu6W4Ev1KUbqfmaMSZuq+tmbtTWaqxTif/yaui8WCEcRlQrHC8q9tNzBclHOw== + "@tybys/wasm-util@^0.10.1": version "0.10.1" resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.10.1.tgz#ecddd3205cf1e2d5274649ff0eedd2991ed7f414"