tsconfig
Shared TypeScript config for @preco21
Install
$ npm install --save-dev @preco21/tsconfig
This config requires TypeScript 4.7 or later.
Usage
tsconfig.json
:
{
"extends": "@preco21/tsconfig",
"compilerOptions": {
"outDir": "dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Snippets
For common setup
{
"extends": "@preco21/tsconfig",
"compilerOptions": {
"outDir": "dist",
"declaration": true,
"incremental": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
For Node.js setup
{
"extends": "@preco21/tsconfig/node",
...
}
Motivation
Heavily inspired by sindresorhus/tsconfig
.