/
tsconfig.json
49 lines (49 loc) · 1.5 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"compilerOptions": {
"target": "es2017",
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"incremental": true,
"moduleResolution": "node",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"paths": {
"@api/*": ["./pages/api/*"],
"@kits/*": ["./components/Kits/*"],
"@components/*": ["./components/*"],
"@validators/*": ["./validators/*"],
"@utils/*": ["./utils/*"],
"@models/*": ["./models/*"],
"@services/*": ["./services/*"],
"@constants/*": ["./constants/*"],
/** @types would cause a problem with types from node_modules see here https://stackoverflow.com/questions/61308006/how-to-correctly-import-custom-types-in-typescript#answer-67892812 */
"@_types/*": ["./types/*"],
"@stylesheets/*": ["./stylesheets/*"],
"@helpers/*": ["./helpers/*"],
"@hooks/*": ["./hooks/*"],
"@configs/*": ["./configs/*"],
"@contexts/*": ["./contexts/*"],
"@images": ["./public/images/index"],
"@data/*": ["./data/*"],
"@pages/*": ["./pages/*"],
"@configs": ["./configs/*"]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"types/*.d.ts",
"**/*.js"
],
"exclude": ["node_modules", "out", ".next"]
}