Shared TypeScript config for my projects
npm install --save-dev @meewmeew/tsconfig
yarn add --dev @meewmeew/tsconfig
This config requires TypeScript 4.7 or later.
tsconfig.json
{
"extends": "@meewmeew/tsconfig",
"compilerOptions": {
"outDir": "build"
}
}
When you are targeting a higher version of Node.js, check the relevant ECMAScript version and add it as target
:
{
"extends": "@meewmeew/tsconfig",
"compilerOptions": {
"outDir": "build",
"target": "ES2023"
}
}