tsconfig.json

Download
json 51 lines 2.3 KB
 1{
 2  "compilerOptions": {
 3    /* κΈ°λ³Έ μ˜΅μ…˜ */
 4    "target": "ES2020",                    /* 좜λ ₯ JavaScript 버전 */
 5    "module": "commonjs",                  /* λͺ¨λ“ˆ μ‹œμŠ€ν…œ */
 6    "lib": ["ES2020", "DOM"],             /* 포함할 라이브러리 */
 7    "outDir": "./dist",                    /* 좜λ ₯ 디렉토리 */
 8    "rootDir": "./",                       /* μ†ŒμŠ€ 루트 디렉토리 */
 9
10    /* μ—„κ²©ν•œ νƒ€μž… 체크 */
11    "strict": true,                        /* λͺ¨λ“  μ—„κ²©ν•œ νƒ€μž… 체크 μ˜΅μ…˜ ν™œμ„±ν™” */
12    "strictNullChecks": true,              /* null/undefined 엄격 체크 */
13    "strictFunctionTypes": true,           /* ν•¨μˆ˜ νƒ€μž… 엄격 체크 */
14    "strictBindCallApply": true,           /* bind, call, apply 엄격 체크 */
15    "strictPropertyInitialization": true,  /* 클래슀 속성 μ΄ˆκΈ°ν™” 체크 */
16    "noImplicitAny": true,                 /* μ•”μ‹œμ  any κΈˆμ§€ */
17    "noImplicitThis": true,                /* μ•”μ‹œμ  this κΈˆμ§€ */
18    "alwaysStrict": true,                  /* "use strict" μΆ”κ°€ */
19
20    /* μΆ”κ°€ 체크 */
21    "noUnusedLocals": true,                /* μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” μ§€μ—­ λ³€μˆ˜ μ—λŸ¬ */
22    "noUnusedParameters": true,            /* μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” λ§€κ°œλ³€μˆ˜ μ—λŸ¬ */
23    "noImplicitReturns": true,             /* μ•”μ‹œμ  λ°˜ν™˜ κΈˆμ§€ */
24    "noFallthroughCasesInSwitch": true,    /* switch fall-through κΈˆμ§€ */
25    "noUncheckedIndexedAccess": true,      /* 인덱슀 μ ‘κ·Ό μ‹œ undefined 포함 */
26
27    /* λͺ¨λ“ˆ ν•΄κ²° */
28    "moduleResolution": "node",            /* λͺ¨λ“ˆ ν•΄κ²° 방식 */
29    "esModuleInterop": true,               /* ES λͺ¨λ“ˆ μƒν˜Έ 운용 */
30    "allowSyntheticDefaultImports": true,  /* default import ν—ˆμš© */
31    "resolveJsonModule": true,             /* JSON import ν—ˆμš© */
32
33    /* μ†ŒμŠ€λ§΅ */
34    "sourceMap": true,                     /* .map 파일 생성 */
35    "declaration": true,                   /* .d.ts 파일 생성 */
36    "declarationMap": true,                /* .d.ts.map 파일 생성 */
37
38    /* 기타 */
39    "forceConsistentCasingInFileNames": true, /* 파일λͺ… λŒ€μ†Œλ¬Έμž 일관성 */
40    "skipLibCheck": true,                  /* 라이브러리 νƒ€μž… 체크 μŠ€ν‚΅ */
41    "removeComments": false                /* 주석 μœ μ§€ */
42  },
43  "include": [
44    "*.ts"
45  ],
46  "exclude": [
47    "node_modules",
48    "dist"
49  ]
50}