-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtsconfig.json
More file actions
25 lines (25 loc) ยท 1.44 KB
/
tsconfig.json
File metadata and controls
25 lines (25 loc) ยท 1.44 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
{
"compilerOptions": {
"outDir": "./dist",
"declaration": true,
"jsx": "react-jsx",
"target": "es6", // ์ปดํ์ผ ๊ฒฐ๊ณผ๋ฌผ์ ๋ฌธ๋ฒ -> es6
"lib": ["dom", "dom.iterable", "esnext"], // ์ฌ์ฉ ๊ฐ๋ฅํ ๋ฌธ๋ฒ
"allowJs": true, // .js, .jsx ํ์ฅ์ ํ์ฉ
"strictFunctionTypes": true, //ํจ์ ํ๋ผ๋ฏธํฐ ์ฒดํฌ ๊ฐํ๊ฒ
"skipLibCheck": true, // d.ts ํ์ผ์ ํ์
๊ฒ์ฌ ์๋ต
"esModuleInterop": true, // es module์ด ์๋์ด๋ import export ์ธ ์ ์๊ฒ ํจ
"allowSyntheticDefaultImports": true, // default export๊ฐ ์๋ ๋ชจ๋์ default import ํ์ฉ
"strict": true, // ๋ชจ๋ strict๊ฐ ๋ถ์ ์ค์ true
"forceConsistentCasingInFileNames": true, //jsxImportSource ๋์ผํ ํ์ผ์ ๋ํด ์ผ๊ด๋์ง ์์ ์ฐธ์กฐ ํ์ฉ
"noFallthroughCasesInSwitch": true, // switch๋ฌธ break๋ฌธ ์ฌ์ฉํ์ง ์์ผ๋ฉด ๊ฒฝ๊ณ
"module": "es6", // ์ปดํ์ผ ๊ฒฐ๊ณผ๋ฌผ์ module ๋ฐฉ์
"moduleResolution": "node", // ๋ชจ๋ ํด์ ์ ๋ต -> node
"resolveJsonModule": true, // JSON์ importํ ์ ์์
"isolatedModules": true, // ๋ชจ๋ ํ์ผ์ ๋ชจ๋๋ก ๋ง๋ค์ด์ผ ํจ (import, export ํ์ง ์์ผ๋ฉด ์๋ฌ)
"noEmit": false, // ๊ฒฐ๊ณผ๋ฌผ์ ๋ง๋ค์ง ์์ -> ํ์
์ฒดํฌ์ฉ
"noImplicitAny": true, // ์๋ฌต์ any ๊ธ์ง
"sourceMap": true // ๋๋ฒ๊น
์ ์๋ณธ TypeScript ์ฝ๋๋ฅผ ๋ณด์ฌ์ค
},
"exclude": ["**/dist/**, **/node_modules", "**/*.stories.tsx", "tests"]
}