@carbonid1/tsconfig
v0.3.0
Published
Shared TypeScript configurations
Readme
@carbonid1/tsconfig
Shared TypeScript configurations.
Usage
Install:
pnpm add -D @carbonid1/tsconfigExtend in your tsconfig.json:
{
"extends": "@carbonid1/tsconfig/nextjs.json",
"compilerOptions": {
"paths": { "@/*": ["./src/*"] }
},
"include": ["**/*.ts", "**/*.tsx"]
}Available configs
| Config | Use for |
| --- | --- |
| base.json | Strict defaults only; no framework assumptions |
| nextjs.json | Next.js apps (JSX preserve, Next plugin, noEmit) |
| react-library.json | React libraries (emits .d.ts with maps) |
| electron.json | Electron main/preload processes (CommonJS, Node resolution) |
Each config extends base.json. Add project-specific options (paths, includes, excludes) in your own tsconfig.json.
