Skip to content

Commit 9202f30

Browse files
committed
Modernize tsconfig.json
1 parent 887197f commit 9202f30

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@graphql-codegen/typescript-graphql-request": "^6.3.0",
4242
"@graphql-codegen/typescript-operations": "^4.6.1",
4343
"@tailwindcss/typography": "^0.5.16",
44+
"@tsconfig/next": "^2.0.3",
4445
"@types/node": "24.0.10",
4546
"@types/react": "18.3.12",
4647
"@types/react-dom": "18.3.1",

tsconfig.json

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
{
2+
"extends": "@tsconfig/next/tsconfig.json",
23
"compilerOptions": {
3-
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
5-
"allowJs": true,
6-
"skipLibCheck": true,
4+
"target": "es2024",
5+
"module": "esnext",
6+
"moduleResolution": "bundler",
7+
78
"strict": true,
8-
"forceConsistentCasingInFileNames": true,
9+
"skipLibCheck": true,
910
"noEmit": true,
10-
"esModuleInterop": true,
11-
"module": "esnext",
12-
"moduleResolution": "node",
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"jsx": "preserve",
16-
"incremental": true,
1711
"baseUrl": ".",
18-
"paths": {
19-
"~/*": ["./*"]
20-
},
21-
"plugins": [
22-
{
23-
"name": "next"
24-
}
25-
]
12+
"paths": { "~/*": ["./*"] },
13+
"types": ["tailwindcss", "node"]
2614
},
2715
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
2816
"exclude": ["node_modules"]

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3324,6 +3324,11 @@
33243324
resolved "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.11.2.tgz"
33253325
integrity sha512-vTtpNt7mKCiZ1pwU9hfKPhpdVO2sVzFQsxoVBGtOSHxlrRRzYr8iQ2TlwbAcRYCcEiZ9ECAM8kBzH0v2+VzfKw==
33263326

3327+
"@tsconfig/next@^2.0.3":
3328+
version "2.0.3"
3329+
resolved "https://registry.yarnpkg.com/@tsconfig/next/-/next-2.0.3.tgz#e2b273136175a85749d8ed4ec434a84c43db209d"
3330+
integrity sha512-b4aKvmdWnv9aUy+NStUFlefirk3SItW20OJtbi5/ue9oMRaQtUYbN5zsr7OmV3rlx6Gp6h7A82gPoCXhrNGVPQ==
3331+
33273332
"@types/debug@^4.0.0":
33283333
version "4.1.12"
33293334
resolved "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz"

0 commit comments

Comments
 (0)