forked from FastCampus-Mini5/FE-Of-course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
52 lines (52 loc) ยท 1.88 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
46
47
48
49
50
51
52
{
"compilerOptions": {
"types": ["node"],
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"declaration": true, //์ปดํ์ผ์ .d.ts ํ์ผ๋ ์๋์ผ๋ก ํจ๊ป์์ฑ (ํ์ฌ์ฐ๋ ๋ชจ๋ ํ์
์ด ์ ์๋ ํ์ผ)
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true, // default export๊ฐ ์๋ ๋ชจ๋์์ default imports๋ฅผ ํ์ฉํฉ๋๋ค. ์ฝ๋ ๋ฐฉ์ถ์๋ ์ํฅ์ ์ฃผ์ง ์์ผ๋ฉฐ, ํ์
๊ฒ์ฌ๋ง ์ํํฉ๋๋ค
"typeRoots": ["./@types", "./node_modules/@types"],
/* Bundler mode */
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true, //๊ธฐ๋ณธ๊ฐ - false, CommonJS์์ ์กด์ฌํ์ง ์๋ ๊ธฐ๋ณธ ๋ด๋ณด๋ด๊ธฐ ์ค์
"noEmit": true,
"jsx": "react-jsx",
"removeComments": true, //์ปดํ์ผ์ ์ฃผ์์ ๊ฑฐ
"noImplicitAny": false,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true, //ํจ์์์ return ๋นผ๋จน์ผ๋ฉด ์๋ฌ๋ด๊ธฐ
"noFallthroughCasesInSwitch": true,
"baseUrl": "./", // baseUrl์ ๊ธฐ์ค์ผ๋ก ๊ด๋ จ๋ ์์น์ ๋ชจ๋ ์ด๋ฆ์ ๊ฒฝ๋ก ๋งคํ ๋ชฉ๋ก์ ๋์ดํฉ๋๋ค.
"paths": {
"@/*": ["src/*"],
"pages/*": ["src/pages/*"],
"components/*": ["src/components/*"],
"types/*": ["src/types/*"],
"api/*": ["src/api/*"],
"styles/*": ["src/styles/*"],
"assets/*": ["src/assets/*"],
"constants/*": ["src/constants/*"],
"utils/*": ["src/utils/*"],
"contexts/*": ["src/contexts/*"]
}
},
"include": [
"src",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.js",
"src/**/*.d.ts",
"src/**/*.svg"
],
"exclude": ["node_modules"],
"references": [{ "path": "./tsconfig.node.json" }]
}