1 | // Typescript cheat-sheet: https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/README.md#troubleshooting-handbook-tsconfigjson
|
2 | // Typescript documentation: https://www.typescriptlang.org/tsconfig
|
3 | {
|
4 | "compilerOptions": {
|
5 | "baseUrl": "src",
|
6 | "rootDir": "src",
|
7 | "outDir": "dist",
|
8 | "module": "commonjs",
|
9 | "allowSyntheticDefaultImports": true,
|
10 | "esModuleInterop": true,
|
11 | "lib": ["dom", "esnext"],
|
12 | "target": "es5",
|
13 | "strict": true,
|
14 | "declaration": true,
|
15 | "sourceMap": true,
|
16 | "allowJs": true,
|
17 | "jsx": "react",
|
18 | "removeComments": true,
|
19 | "forceConsistentCasingInFileNames": true,
|
20 | "skipLibCheck": true
|
21 | },
|
22 | "include": [
|
23 | "index.js"
|
24 | ],
|
25 | "exclude": [
|
26 | "node_modules",
|
27 | "build",
|
28 | "dist",
|
29 | "scripts"
|
30 | ]
|
31 | }
|