tsconfig.json

JS
S
JavaScript

npm i typescript Latest Typescript version: 4.3.5 (31/07/21) Latest Node.js version: v14.17.0

1{
2  "compilerOptions": {
3    /* Basic Options */
4    "incremental": true,
5    "target": "es6",
6    "module": "commonjs",
7    "outDir": "build",
8
9    /* Strict Type-Checking Options */
10    "strict": true,
11    "noImplicitAny": true,
12    "strictNullChecks": true,
13    "strictFunctionTypes": true,
14    "strictBindCallApply": true,
15    "strictPropertyInitialization": true,
16    "noImplicitThis": true,
17    "alwaysStrict": true,
18
19    /* Additional Checks */
20    "noUnusedLocals": true,
21    "noUnusedParameters": true,
22    "noImplicitReturns": true,
23    "noFallthroughCasesInSwitch": true,
24
25    /* Module Resolution Options */
26    "moduleResolution": "node",
27    "baseUrl": ".",
28    "esModuleInterop": true,
29
30    /* Experimental Options */
31    "experimentalDecorators": true,
32    "emitDecoratorMetadata": true,
33
34    /* Advanced Options */
35    "forceConsistentCasingInFileNames": true
36  }
37}
38
39
40----- TYPESCRIPT PROJECTS -----
41{
42  "$schema": "https://json.schemastore.org/tsconfig",
43  "display": "Node 12",
44  "compilerOptions": {
45    "lib": ["es2019", "es2020.promise", "es2020.bigint", "es2020.string"],
46    "module": "commonjs",
47    "target": "es2019",
48    "strict": true,
49    "esModuleInterop": true,
50    "outDir": "build",
51    "sourceMap": true,
52    "experimentalDecorators": true,
53    "skipLibCheck": true,
54    "forceConsistentCasingInFileNames": true
55  }
56}
57

Created on 2/17/2021