forked from fdgh134/front_4th_chapter4-2_advanced
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.app.json
More file actions
62 lines (62 loc) · 1.83 KB
/
tsconfig.app.json
File metadata and controls
62 lines (62 loc) · 1.83 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"compilerOptions": {
"target": "ES6",
"lib": ["es2018", "dom", "dom.iterable", "scripthost"],
"jsx": "react-jsx",
"rootDir": "./",
"module": "ESNext",
"moduleResolution": "bundler",
"baseUrl": "./",
// 경로 별칭 설정
"paths": {
"@/*": ["src/*"],
"@components/*": ["src/components/*"]
},
"outDir": "./build",
// CommonJS 모듈을 ES 모듈처럼 사용 가능하게 함
"esModuleInterop": true,
// 파일 이름의 대소문자 일관성 강제
"forceConsistentCasingInFileNames": true,
// JavaScript 파일 컴파일 허용
"allowJs": true,
// JavaScript 파일의 타입 체크 활성화
"checkJs": true,
// 컴파일된 파일 생성하지 않음 (Vite가 처리)
"noEmit": true,
// 소스맵 생성
"sourceMap": true,
// 컴파일된 출력에서 주석 제거
"removeComments": true,
// 타입 정의 파일(.d.ts) 생성
"declaration": true,
// 모든 엄격한 타입-체킹 옵션 활성화
"strict": true,
// 사용하지 않는 지역 변수 체크
"noUnusedLocals": true,
// 사용하지 않는 매개변수 체크
"noUnusedParameters": true,
// 함수의 모든 코드 경로가 값을 반환하는지 체크
"noImplicitReturns": true,
// switch문에서 fallthrough 케이스 체크
"noFallthroughCasesInSwitch": true,
// node_modules의 타입 체크 스킵
"skipLibCheck": true,
// .ts 확장자 import 비활성화 (Vite가 처리)
"allowImportingTsExtensions": false
},
// 컴파일에 포함할 파일 패턴 (더 포괄적으로 변경)
"include": [
"src/**/*",
"*.ts",
"*.tsx",
"vite.config.ts",
"src/vite-env.d.ts"
],
// 컴파일에서 제외할 파일 패턴
"exclude": [
"node_modules",
"build",
"dist",
"coverage"
]
}