1 | ### The recommended base for a TSConfig.
|
2 |
|
3 | Add the package to your `"devDependencies"`:
|
4 |
|
5 | ```sh
|
6 | npm install --save-dev @tsconfig/recommended
|
7 | yarn add --dev @tsconfig/recommended
|
8 | ```
|
9 |
|
10 | Add to your `tsconfig.json`:
|
11 |
|
12 | ```json
|
13 | "extends": "@tsconfig/recommended/tsconfig.json"
|
14 | ```
|
15 |
|
16 | ---
|
17 |
|
18 | The `tsconfig.json`:
|
19 |
|
20 | ```jsonc
|
21 | {
|
22 | "compilerOptions": {
|
23 | "target": "ES2015",
|
24 | "module": "commonjs",
|
25 | "strict": true,
|
26 | "esModuleInterop": true,
|
27 | "skipLibCheck": true,
|
28 | "forceConsistentCasingInFileNames": true
|
29 | },
|
30 | "$schema": "https://json.schemastore.org/tsconfig",
|
31 | "display": "Recommended"
|
32 | }
|
33 | ```
|