Shared TypeScript config for my projects
This config makes TypeScript not do any polyfilling, so only use syntax and features available in the JavaScript environments you target.
npm install --save-dev @sindresorhus/tsconfigThis config requires TypeScript >=6.0 and Node.js >=22.
tsconfig.json
{
"extends": "@sindresorhus/tsconfig"
}TypeScript no longer includes @types/node automatically. If your project uses Node.js APIs, install @types/node and add it to types:
{
"extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"types": ["node"]
}
}