-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
29 lines (26 loc) · 1.3 KB
/
tsconfig.json
File metadata and controls
29 lines (26 loc) · 1.3 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
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"target": "esnext", // 최신 ECMAScript 문법을 사용
"lib": ["esnext", "dom"], // 최신 ECMAScript 및 DOM API 사용 가능
"jsx": "react-native", // React Native에서 JSX를 사용할 수 있도록 설정
"strict": true, // TypeScript의 엄격한 타입 검사를 활성화
"noImplicitAny": true, // 암시적인 `any` 타입을 허용하지 않음 (타입을 명확히 지정해야 함)
"allowSyntheticDefaultImports": true, // `import React from 'react'` 같은 구문을 허용
"resolveJsonModule": true, // JSON 파일을 import 가능하게 함
"isolatedModules": true, // 단일 파일 단위의 트랜스파일링을 강제하여 최적화
"skipLibCheck": true, // `node_modules` 내 타입 선언 파일을 검사하지 않아 빌드 속도 향상
"baseUrl": "./", // 기본 경로를 프로젝트 루트로 설정
"paths": {
"@/*": ["src/*"] // `@/components/Button` 같은 경로 단축(alias) 기능 제공
}
},
"include": [
"src",
"App.tsx",
"index.tsx",
"eslint.config.mjs",
"assets/**/*"
], // 프로젝트에서 TypeScript가 적용될 파일들
"exclude": ["node_modules", "babel.config.js", "metro.config.js"] // 빌드 대상에서 제외할 파일들
}