-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
35 lines (34 loc) · 1.25 KB
/
tsconfig.json
File metadata and controls
35 lines (34 loc) · 1.25 KB
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
{
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@apis/*": ["apis/*"],
"@assets/*": ["assets/*"],
"@components/*": ["components/*"],
"@hooks/*": ["hooks/*"],
"@layout/*": ["layout/*"],
"@mocks/*": ["mocks/*"],
"@pages/*": ["pages/*"],
"@routes/*": ["routes/*"],
"@stores/*": ["stores/*"],
"@type/*": ["type/*"],
"@utils/*": ["utils/*"],
"@data/*": ["data/*"]
},
"target": "ES2022",
"lib": ["DOM", "DOM.Iterable", "ES2022"], // 웹 환경 + 최신 JS
"allowJs": true, // JS 파일 허용
"jsx": "react-jsx", // React 17+ JSX 변환 (자동 import 방식)
"module": "ESNext", // Vite는 ES 모듈 사용
"moduleResolution": "node",
"resolveJsonModule": true, // JSON import 허용
"isolatedModules": true, // 개별 모듈로 처리 (vite용)
"esModuleInterop": true, // CommonJS 호환 import 허용
"allowSyntheticDefaultImports": true, // default import 허용
"strict": true, // 엄격한 타입 검사
"forceConsistentCasingInFileNames": true, // 대소문자 구분 강제
"noFallthroughCasesInSwitch": true, // switch fallthrough 금지
"skipLibCheck": true // node_modules 내 타입 검사 생략
},
"include": ["src"]
}