Skip to content

Commit 5db85a0

Browse files
committed
Updated tsconfig and page.tsx rendering
1 parent 20c8803 commit 5db85a0

2 files changed

Lines changed: 48 additions & 16 deletions

File tree

src/app/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client"
2+
13
import Image from "next/image";
24
import Background from '@components/background/background';
35
import Clock from "@components/clock/Clock";

tsconfig.json

Lines changed: 46 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es2022",
4-
"lib": ["dom", "dom.iterable", "es2022"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"es2022"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -11,7 +15,7 @@
1115
"moduleResolution": "bundler",
1216
"resolveJsonModule": true,
1317
"isolatedModules": true,
14-
"jsx": "preserve",
18+
"jsx": "react-jsx",
1519
"incremental": true,
1620
"sourceMap": true,
1721
"noImplicitAny": true,
@@ -22,25 +26,51 @@
2226
}
2327
],
2428
"paths": {
25-
"@components/*": ["./src/components/*"],
26-
"@models/*": ["./src/models/*"],
27-
"@services/*": ["./src/services/*"],
28-
"@hooks/*": ["./src/hooks/*"],
29-
"@/*": ["./src/*"],
30-
"image/*": ["./public/image/*"],
31-
"svg/*": ["./public/svg/*"],
32-
"@config/*": ["./public/config/*"],
33-
"@audio/*": ["./public/audio/*"],
34-
"@app/*": ["./src/app/*"],
35-
"public/*": ["./public/*"]
29+
"@components/*": [
30+
"./src/components/*"
31+
],
32+
"@models/*": [
33+
"./src/models/*"
34+
],
35+
"@services/*": [
36+
"./src/services/*"
37+
],
38+
"@hooks/*": [
39+
"./src/hooks/*"
40+
],
41+
"@/*": [
42+
"./src/*"
43+
],
44+
"image/*": [
45+
"./public/image/*"
46+
],
47+
"svg/*": [
48+
"./public/svg/*"
49+
],
50+
"@config/*": [
51+
"./public/config/*"
52+
],
53+
"@audio/*": [
54+
"./public/audio/*"
55+
],
56+
"@app/*": [
57+
"./src/app/*"
58+
],
59+
"public/*": [
60+
"./public/*"
61+
]
3662
}
3763
},
3864
"include": [
3965
"next-env.d.ts",
4066
"**/*.ts",
4167
"**/*.tsx",
4268
".next/types/**/*.ts",
43-
"src/**/*.d.ts"
69+
"src/**/*.d.ts",
70+
".next/dev/types/**/*.ts"
4471
],
45-
"exclude": ["node_modules", "./tsconfig.json"]
46-
}
72+
"exclude": [
73+
"node_modules",
74+
"./tsconfig.json"
75+
]
76+
}

0 commit comments

Comments
 (0)