My common TypeScript configuration.
pnpm add --save-dev typescript @mcous/typescript-config
Use the base config for generic TypeScript projects, including code that runs natively in Node.js or isomorphically, in both Node.js and the browser.
// tsconfig.json
{
"extends": "@mcous/typescript-config/base.json",
"compilerOptions": {
// ...project specific options, like `module` and `target`
},
}