TSConfig
Best Practices
Follow TSConfig best practices for Nova with small preset chains, explicit wiring, and stable compiler behavior for Node and bundlers.
TypeScript Compatibility
Use Nova with its supported TypeScript 6 compiler line, exact project pins, and migration-safe TSConfig settings.
DX - Essentials
Set the baseline TypeScript compiler options for Nova projects with Node ESM resolution, predictable modules, and source maps.
DX - Strict
Layer strict TypeScript checks over the essentials baseline with full strict mode, unused-code detection, and exhaustive null safety.
Framework - Astro
Configure the Astro framework layer for TypeScript with native TypeScript-extension imports, bundler resolution, DOM libraries, and preserved JSX.
Framework - Docusaurus
Configure TypeScript for Docusaurus sites with bundler resolution, DOM libraries, and preserved JSX for static builds.
Framework - Express.js
Mark an Express.js source layer explicitly while Node runtime and source-role presets provide its compiler behavior.
Framework - Homebridge
Configure TypeScript for Homebridge plugins with DOM APIs and compiler settings that remain compatible with Homebridge's ambient HAP const enums.
Framework - Next.js
Configure TypeScript for Next.js apps with bundler resolution, DOM libraries, isolated modules, and the Next.js compiler plugin.
Framework - React
Configure TypeScript for React with the modern JSX transform, bundler resolution, and browser libraries.
Framework - Svelte
Configure TypeScript for Svelte with checked JavaScript, bundler resolution, and browser libraries.
Framework - Vue
Configure TypeScript for Vue with preserved JSX, bundler resolution, and browser libraries.
Role - App
Type-check application code without TypeScript emitting files when a framework or bundler owns the build output.
Role - Config
Type-check repository and tool configuration files without emitting JavaScript or declarations.
Role - Scripts
Type-check JavaScript and TypeScript repository scripts without emitting build output.
Role - Source
Let TypeScript emit source code, declarations, and declaration maps for packages and directly compiled applications.
Role - Tests
Type-check Vitest suites and test helpers without emitting JavaScript or declarations.
Runtime - Browser
Add browser DOM type definitions and bundler module resolution to a Nova TSConfig chain for code that ships to the browser.
Runtime - Cloudflare Workers
Configure TypeScript for Cloudflare Workers with bundler resolution, per-file isolation, and the runtime's ESNext library.
Runtime - Edge
Add DOM-compatible type definitions and bundler module resolution to a Nova TSConfig chain for code that runs on edge runtimes.
Runtime - Node
Add Node ESM module resolution and the ESNext lib to a Nova TSConfig chain for server-side code that runs on the Node.js runtime.
Runtime - Service Worker
Configure TypeScript for service workers with WebWorker libraries, ESNext modules, and bundler resolution for browser background scripts.
Runtime - Web Worker
Configure TypeScript for web workers with WebWorker libraries, ESNext modules, automatic module detection, and bundler resolution.
Tool - Vite
Configure TypeScript for Vite projects with bundler module resolution, isolated modules, and browser libraries.