Platform Help

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:

{ "extends": "@kurocado-studio/styleguide/typescript/tsconfig.json" }

Presets

Preset

Path

Best for

Key traits

Base

@kurocado-studio/styleguide/typescript/tsconfig.json

Libraries + general TS

Strict flags on, moduleResolution: "bundler".

Node

@kurocado-studio/styleguide/typescript/tsconfig.node.json

Node services/scripts

Node-oriented module settings, decorators enabled.

React

@kurocado-studio/styleguide/typescript/tsconfig.react.json

React apps

jsx: "react-jsx", DOM libs enabled.

NestJS

@kurocado-studio/styleguide/typescript/tsconfig.nestjs.json

NestJS backends

Decorators on, outDir: "dist", includes common type packages.

Remix

@kurocado-studio/styleguide/typescript/tsconfig.remix.json

Remix apps (Vite)

Extends React preset, includes vite/client types.

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.

Last modified: 18 December 2025