Shared TypeScript config for my projects
npm install @rubiin/tsconfig> Shared TypeScript config for my projects
``sh`
npm install --save-dev @rubiin/tsconfig
This config requires TypeScript 5 or later.
tsconfig.json
`json`
{
"extends": "@rubiin/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": "@rubiin/tsconfig",
"compilerOptions": {
"outDir": "dist",
"target": "ES2023"
}
}