UNPKG

597 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": "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```