75 lines
1.3 KiB
JSON
75 lines
1.3 KiB
JSON
// File: tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"lib": [
|
|
"dom",
|
|
"dom.iterable",
|
|
"esnext"
|
|
],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"paths": {
|
|
"baseUrl": "./",
|
|
"@/*": [
|
|
"./*"
|
|
],
|
|
"@components": [
|
|
"components/*"
|
|
],
|
|
"@config": [
|
|
"config/*"
|
|
],
|
|
"@lib": [
|
|
"lib/*"
|
|
],
|
|
"@providers": [
|
|
"providers/*"
|
|
],
|
|
"@public": [
|
|
"public/*"
|
|
],
|
|
"@styles": [
|
|
"styles/*"
|
|
],
|
|
"@types": [
|
|
"types/*"
|
|
],
|
|
"@api": [
|
|
"app/api/*"
|
|
],
|
|
// เพิ่มส่วนที่ขาดไปเพื่อให้ตรงกับ Workspace
|
|
"@hooks/*": [
|
|
"app/hooks/*"
|
|
],
|
|
"@utils/*": [
|
|
"utils/*"
|
|
]
|
|
},
|
|
"target": "ES2017"
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules"
|
|
]
|
|
}
|