Skip to content

Commit 7d7fc9a

Browse files
committed
chore: update tsconfig from next.js
1 parent 1c06669 commit 7d7fc9a

File tree

1 file changed

+39
-13
lines changed

1 file changed

+39
-13
lines changed

tsconfig.json

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"strict": false,
@@ -13,19 +17,41 @@
1317
"resolveJsonModule": true,
1418
"isolatedModules": true,
1519
"jsx": "preserve",
16-
1720
"baseUrl": ".",
1821
"paths": {
19-
"@components/*": ["components/*"],
20-
"@lib/*": ["lib/*"],
21-
"@utils/*": ["utils/*"],
22-
"@configs/*": ["configs/*"],
23-
"@middlewares/*": ["middlewares/*"],
24-
"@hooks/*": ["hooks/*"],
25-
"@pages/*": ["pages/*"],
26-
"@plugins/*": ["plugins/*"]
27-
}
22+
"@components/*": [
23+
"components/*"
24+
],
25+
"@lib/*": [
26+
"lib/*"
27+
],
28+
"@utils/*": [
29+
"utils/*"
30+
],
31+
"@configs/*": [
32+
"configs/*"
33+
],
34+
"@middlewares/*": [
35+
"middlewares/*"
36+
],
37+
"@hooks/*": [
38+
"hooks/*"
39+
],
40+
"@pages/*": [
41+
"pages/*"
42+
],
43+
"@plugins/*": [
44+
"plugins/*"
45+
]
46+
},
47+
"incremental": true
2848
},
29-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
30-
"exclude": ["node_modules"]
49+
"include": [
50+
"next-env.d.ts",
51+
"**/*.ts",
52+
"**/*.tsx"
53+
],
54+
"exclude": [
55+
"node_modules"
56+
]
3157
}

0 commit comments

Comments
 (0)