-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
22 lines (22 loc) · 1.5 KB
/
tsconfig.json
File metadata and controls
22 lines (22 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"compilerOptions": {
"target": "es5", // 사용할 ECMA Script Version 설정
"lib": ["dom", "dom.iterable", "esnext"],
"experimentalDecorators": true,
"allowJs": true,
"skipLibCheck": false, // d.ts 유형검사를 건너 뜀.
"esModuleInterop": true, // ES6 모듈 사양을 준수하여 CommonJS 모듈(require)을 가져오게함 https://pewww.tistory.com/26
"allowSyntheticDefaultImports": true, // export class Foo {} => export default { Foo } 치환 되도록 설정
"strict": true, // 모든 엄격한 타입 검사 옵션을 활성화 (noImplicitAny, noImplicitThis, alwaysStrict, strictNullChecks, strictFunctionTypes)
"forceConsistentCasingInFileNames": true, // 파일명에 대소문자 구분하지 않아도 되는 기능 사용 여부
"module": "esnext", // module import에 사용하는 es 버전 정의
"moduleResolution": "node", // 모듈 해석방식 https://vomvoru.github.io/blog/typescript-module-resolution/
"resolveJsonModule": true, // json 파일을 import 할 수 있게 허용합니다.
"isolatedModules": true, // 각 파일을 별도의 모듈로 변환
"noEmit": true, // 결과파일을 저장하지 않음, 타입스크립트 컴파일러를 컴파일러 용도로만 사용합니다. 컴파일은 웹팩에게 맡깁니다.
"jsx": "react-jsx",
"noFallthroughCasesInSwitch": true,
"strictPropertyInitialization": false /** class의 변수 초기화 강제를 해제 */
},
"include": ["src", "types"] // compile할 파일들
}