Sharing tsconfig.json.
There are 3 configurations:
| File | Alias | Target | Module | Description |
|---|---|---|---|---|
tsconfig.base.json |
base |
- | - | Base configuration |
tsconfig.json |
. |
ES2021 |
ESNext |
Default configuration |
tsconfig.bun.json |
bun |
ESNext |
ESNext |
Configuration specific to bun (Suggested compilerOptions) |
Add @culur/config-typescript dependency to your project.
# Using npm
npm install @culur/config-typescript --save-dev
# Using pnpm
pnpm install @culur/config-typescript --dev
# Using yarn
yarn add @culur/config-typescript --devOther packages:
- Use need to install
typescriptand@types/nodepackages in devDependencies.
- Node.js >= 20
- TypeScript >= 5.1
Add to your tsconfig.json:
See CHANGELOG for more information on what has changed recently.
See LICENSE for license rights and limitations (MIT).
{ "extends": "@culur/config-typescript", }