-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathtsconfig.json
26 lines (26 loc) · 1.21 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": {
"noImplicitAny": true, //raise error on any type
"allowSyntheticDefaultImports": true, //allow default imports from modules with no default export
"sourceMap": true, //generate .map files
"target": "es6", //target es6
"jsx": "react", //use react
"types": ["react", "node"], //use react and node types
"module": "esnext", //use esnext modules
"moduleResolution": "node", //use node module resolution strategy node
"experimentalDecorators": true, //allow experimental decorators for es7
"declaration": false, //don't generate declaration '.d.ts' files
"removeComments": true, //remove comments from build
"noImplicitReturns": true, //raise error on implicit returns
"noUnusedLocals": true, //raise error on unused locals
"noUnusedParameters": false, //raise no error on unused parameters
"strict": true, //enable all strict type-checking options
"outDir": "dist", //output directory
"baseUrl": "src", //base url for imports
"typeRoots": [
"node_modules/@types" //use node_modules/@types for type definitions
],
"strictNullChecks": true //enable strict null checks
},
"exclude": ["**/node_modules/*", "babel.config.cjs", "dist"]
}