TypeScript
This package ships tsconfig presets so you can stop reinventing compiler settings per repo.
Configure TypeScript
In your project tsconfig.json, extend one of the exported presets:
Presets
Preset | Path | Best for | Key traits |
|---|---|---|---|
Base |
| Libraries + general TS | Strict flags on, |
Node |
| Node services/scripts | Node-oriented module settings, decorators enabled. |
React |
| React apps |
|
NestJS |
| NestJS backends | Decorators on, |
Remix |
| Remix apps (Vite) | Extends React preset, includes |
Notes (read before copy/paste)
The base preset currently sets
target: "ES5"while also using modern module settings. That’s a weird combination in 2025. If you’re targeting Node 20+ or modern browsers, you probably want a higher target (for output size/perf and better downlevel behavior).moduleResolution: "bundler"is great for Vite/modern bundlers, but it’s not a universal default for Node runtime code. Prefer the Node preset for runtime packages.