Skip to content

Commit 3d088f3

Browse files
committed
Update TypeScript configuration in tsconfig.json
- Reformatted the "lib" array for better readability. - Changed JSX setting from "preserve" to "react-jsx" for improved React support. - Expanded the "include" array to include ".next/dev/types/**/*.ts" for better type definitions. - Reformatted "paths" array for consistency in structure.
1 parent f370eba commit 3d088f3

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

components/frontend/tsconfig.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "ES2017",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": true,
@@ -13,7 +17,7 @@
1317
"moduleResolution": "bundler",
1418
"resolveJsonModule": true,
1519
"isolatedModules": true,
16-
"jsx": "preserve",
20+
"jsx": "react-jsx",
1721
"incremental": true,
1822
"plugins": [
1923
{
@@ -22,9 +26,19 @@
2226
],
2327
"baseUrl": ".",
2428
"paths": {
25-
"@/*": ["./src/*"]
29+
"@/*": [
30+
"./src/*"
31+
]
2632
}
2733
},
28-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
29-
"exclude": ["node_modules"]
34+
"include": [
35+
"next-env.d.ts",
36+
"**/*.ts",
37+
"**/*.tsx",
38+
".next/types/**/*.ts",
39+
".next/dev/types/**/*.ts"
40+
],
41+
"exclude": [
42+
"node_modules"
43+
]
3044
}

0 commit comments

Comments
 (0)