UNPKG

@sindresorhus/tsconfig

Version:

Shared TypeScript config for my projects

37 lines (27 loc) 602 B
# tsconfig > Shared [TypeScript config](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) for my projects ## Install ```sh npm install --save-dev @sindresorhus/tsconfig ``` *This config requires TypeScript 4.7 or later.* ## Usage `tsconfig.json` ```json { "extends": "@sindresorhus/tsconfig", "compilerOptions": { "outDir": "dist" } } ``` When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as `target`: ```json { "extends": "@sindresorhus/tsconfig", "compilerOptions": { "outDir": "dist", "target": "ES2021" } } ```