-
Notifications
You must be signed in to change notification settings - Fork 245
/
tsconfig-base.json
27 lines (27 loc) · 2.53 KB
/
tsconfig-base.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
{
"compilerOptions": {
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"moduleResolution": "Node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"lib": ["es2020", "es2021.WeakRef"], /* Specify library files to be included in the compilation: */
"strict": true, /* Enable all strict type-checking options. */
"strictPropertyInitialization": true, /* Require all properties be initialized in the constructor. */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"declarationMap": true, /* Generates declaration map '.d.ts.map' file. */
"esModuleInterop": false, /* Turn on babel and typesystem compatibility with ES modules */
"sourceMap": true, /* Generates source file .js.map file. */
"inlineSourceMap": false, /* Emit a single file with source maps instead of having a separate file. */
"inlineSources": false, /* Emit the source alongside the sourcemaps within a single file. */
"noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitAny": true, /* Report error on expressions and declarations with an implied any type. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
"resolveJsonModule": true, /* Include modules imported with .json extension. */
"composite": true, /* Ensure TypeScript can determine where to find the outputs of the referenced project to compile project. */
"incremental": true, /* Enable incremental compilation by reading/writing information from prior compilations to a file on disk. */
"useDefineForClassFields": false, /* Use Object.defineProperty for introducing class fields. */
"skipLibCheck": true, /* Skip type checking of declaration files. */
}
}