Shared TypeScript config for my projects
npm install --save-dev @kdt-js/tsconfig
This config requires TypeScript 5 or later.
tsconfig.json
{
"extends": "@kdt-js/tsconfig",
"compilerOptions": {
// ...
}
}
-
For Vue, extend
@kdt-js/tsconfig/vue
instead. -
For building a library, using
@kdt-js/tsconfig/lib
and specifyoutDir
in yourtsconfig.json
.