-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
26 lines (23 loc) · 1.48 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
{
"compilerOptions": {
"moduleResolution": "node", // enable import syntax
"outDir": "./dist", // path to output directory (tsc compiler)
"sourceMap": true, // enable sourcemap support
"strictNullChecks": true, // enable strict null checks as a best practice
"module": "es6", // specify module code generation
"jsx": "react", // use typescript to transpile jsx to js
"target": "es2018", // specify ECMAScript target version
"allowJs": true, // allow a mixed TypeScript and JavaScript codebase
"checkJs": false, // don't use ts-lint on js files
"allowSyntheticDefaultImports": true, // allow import syntax with default exports (1/2)
"esModuleInterop": true, // allow import syntax with default exports (2/2)
"skipLibCheck": true, // don't typecheck dependencies
"noEmit": true, // don't emit files as babel will do it
"lib":["ES2020","DOM"], // prevent some linter errors
"declaration": true, // export types
"declarationDir": "./dist/types/", // Declare where files are packaged
"resolveJsonModule": true, // enable import from json
},
"exclude":["node_modules", "dist","src/**/*.json"],
"include":["src/**/*"],
}