-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
45 lines (45 loc) · 2.43 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
38
39
40
41
42
43
44
45
{
"compilerOptions": {
"target": "esnext",
"module": "esnext", //무슨 import 문법 쓸건지 'commonjs', 'amd', 'es2015', 'esnext'
"allowJs": false, // js 파일들 ts에서 import해서 쓸 수 있는지
"checkJs": false, // 일반 js 파일에서도 에러체크 여부
// strict mode
"strict": true, //strict 관련, noimplicit 어쩌구 관련 모드 전부 켜기
"strictNullChecks": true /* Null 과 Undefined 서로의 타입까지 더이상 할당할 수 없게 함 */,
"strictPropertyInitialization": true,
"strictFunctionTypes": true, //함수파라미터 타입체크 강하게
"strictBindCallApply": true, // 설정되면 TypeScript는 내장 함수 call, bind, 및 apply기본 제공 함수에 대한 올바른 인수로 호출되는지 확인합니다.
"noImplicitAny": true, //any타입 금지 여부
"noImplicitThis": true, //this 키워드가 any 타입일 경우 에러내기
"noImplicitReturns": true, // 활성화되면 TypeScript는 함수의 모든 코드 경로를 검사하여 값을 반환하는지 확인합니다.
"alwaysStrict": true, //자바스크립트 "use strict" 모드 켜기
"jsx": "preserve", // tsx 파일을 jsx로 어떻게 컴파일할 것인지 'preserve', 'react-native', 'react'
"importHelpers": false, // import 도우미 코드
"moduleResolution": "node", // 모듈 전략을 제안합니다
"experimentalDecorators": true, // TC39 표준화 프로세스의 2단계에 있는 데코레이터에 대한 실험적 지원을 활성화합니다 .
"outDir": "./dist", //js파일 아웃풋 경로바꾸기
"maxNodeModuleJsDepth": 0, // node_modules JavaScript 파일 을 검색하고 로드하기 위한 최대 종속성 깊이
"skipLibCheck": true, // 선언 파일의 유형 검사를 건너뜁니다.
"esModuleInterop": true, // ES 모듈 상호 운용성
"allowSyntheticDefaultImports": true, // 합성 기본 가져오기 허용
"sourceMap": true, // 소스맵 파일 생성을 활성화
"baseUrl": ".",
"forceConsistentCasingInFileNames": false, // 파일 이름의 일관된 대소문자 지정
"types": ["webpack-env"],
"paths": {
"@/*": ["src/*"]
},
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx",
"src/main.js",
"src/data_tem.js"
],
"exclude": ["node_modules"]
}