-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
37 lines (37 loc) · 1.44 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
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx", // React 17 이상일 때 사용
"baseUrl": "./", // 프로젝트의 루트 경로
"paths": {
"@assets/*": ["src/assets/*"], // @assets 별칭 설정
"@components/*": ["src/components/*"], // @components 별칭 설정
"@features/*": ["src/features/*"], // @features 별칭 설정
"@hooks/*": ["src/hooks/*"], // @hooks 별칭 설정
"@pages/*": ["src/pages/*"], // @pages 별칭 설정
"@layouts/*": ["src/layouts/*"], // @layouts 별칭 설정
"@styles/*": ["src/styles/*"], // @styles 별칭 설정
"@utils/*": ["src/utils/*"] // @utils 별칭 설정
}
},
"include": ["src/**/*", "src/custom.d.ts"], // TypeScript가 처리할 파일들 (src 폴더 포함)
"exclude": ["node_modules"] // 제외할 폴더
// "files": [] // 개별 파일 목록 (필요한 경우 추가)
// "references": [
// { "path": "./tsconfig.app.json" }, // 앱 관련 설정
// { "path": "./tsconfig.node.json" } // 노드 관련 설정
// ]
}