bochi
v6.0.0
Published
tsconfig.json base configs
Maintainers
Readme
bochi
tsconfig.json / prettier / biome / dprint base configs
Required: TypeScript >=
v6
Install
pnpm add -D bochiTSConfig
Library
Common config:
- Default source dir:
src - Default output dir:
dist - Default include:
src
Commonjs Library
// tsconfig.json
{
"extends": "bochi/lib"
}Native ESM Library
Required:
package.json>"type": "module"
// tsconfig.json
{
"extends": "bochi/lib-native-esm"
}React Components Library
{
"extends": "bochi/lib-react"
}Website Project
React Project
{
"extends": "bochi/project",
"include": ["src"]
}Advanced
{
"compilerOptions": {
// upgrade output syntax target
"target": "es2025",
// generate declaration source map
"declarationMap": true
// ...
}
}Prettier
// .prettierrc.js
module.exports = require('bochi/prettier')Biome
// biome.json
{
"extends": ["./node_modules/bochi/biome.json"]
}Dprint
// dprint.json
{
"extends": "./node_modules/bochi/dprint.json"
}License
MIT
