Skip to content

TSConfig

@theholocron/tsconfig provides TypeScript base configurations for the two common project targets used across theholocron repositories.

Terminal window
pnpm add -D @theholocron/tsconfig

For Node.js libraries and tools. Targets the current Node.js LTS release.

{
"extends": "@theholocron/tsconfig/node-lts"
}

For Next.js apps. Extends the Next.js recommended TypeScript configuration.

{
"extends": "@theholocron/tsconfig/nextjs"
}

For browser-targeted React component libraries and Vite apps. Includes DOM lib, ESNext module with bundler resolution, and the react-jsx transform.

{
"extends": "@theholocron/tsconfig/react"
}