UNPKG

670 BMarkdownView Raw
1### The recommended base for a TSConfig.
2
3Add the package to your `"devDependencies"`:
4
5```sh
6npm install --save-dev @tsconfig/recommended
7yarn add --dev @tsconfig/recommended
8```
9
10Add to your `tsconfig.json`:
11
12```json
13"extends": "@tsconfig/recommended/tsconfig.json"
14```
15
16---
17
18The `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
34You can find the [code here](https://github.com/tsconfig/bases/blob/master/bases/recommended.json).