-
Notifications
You must be signed in to change notification settings - Fork 7
/
tsconfig.json
35 lines (31 loc) · 1.38 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
{
"compilerOptions": {
"module": "Node16",
// project options
"lib": ["ESNext"],
"outDir": "dist",
"removeComments": true,
"target": "ES6",
// Module resolution
"esModuleInterop": true,
"moduleResolution": "Node16",
// Source Map
"sourceMap": true,
// Strict Checks
"alwaysStrict": true, // Ensures that your files are parsed in the ECMAScript strict mode, and emit “use strict” for each source file.
"allowUnreachableCode": false, // pick up dead code paths
"noImplicitAny": true, // In some cases where no type annotations are present, TypeScript will fall back to a type of any for a variable when it cannot infer the type.
"strictNullChecks": true, // When strictNullChecks is true, null and undefined have their own distinct types and you’ll get a type error if you try to use them where a concrete value is expected.
"allowJs": true,
// Linter Checks
"noImplicitReturns": true,
"noUnusedLocals": false, // Report errors on unused local variables.
"noUnusedParameters": false, // Report errors on unused parameters in functions
"declaration": true,
"checkJs": false,
"skipLibCheck": true,
"resolveJsonModule": false,
"emitDeclarationOnly": false
},
"include": ["src"]
}