Shared TypeScript config for @preco21
npm install --save-dev @preco21/tsconfig
This config requires TypeScript 5.5 or later.
tsconfig.json
:
{
"extends": "@preco21/tsconfig",
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
For Node.js setup without bundler:
{
"extends": "@preco21/tsconfig/node",
"compilerOptions": {
"declaration": false,
"incremental": true
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Heavily inspired by sindresorhus/tsconfig
.