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": "es2016",
|
24 | "module": "commonjs",
|
25 | "esModuleInterop": true,
|
26 | "forceConsistentCasingInFileNames": true,
|
27 | "strict": true,
|
28 | "skipLibCheck": true
|
29 | },
|
30 | "$schema": "https://json.schemastore.org/tsconfig"
|
31 | }
|
32 | ```
|
33 |
|
34 | You can find the [code here](https://github.com/tsconfig/bases/blob/master/bases/recommended.json).
|