5.1.0 • Published 1 year ago
bochi v5.1.0
bochi
tsconfig.json / prettier / biome base configs
Required: TypeScript >=
5.5 beta
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
Required: TypeScript >=
5
{
"extends": "bochi/project",
"include": ["src"]
}Advanced
{
"compilerOptions": {
// upgrade output syntax target
"target": "es6",
// generate declaration source map
"declarationMap": true
// ...
}
}Prettier
// .prettierrc.js
module.exports = require('bochi/prettier')Biome
// biome.json
{
"extends": ["./node_modules/bochi/biome.json"]
}Package version
| Package Name | Version |
|---|---|
bochi | v5.x |
@xn-sakina/mental | v4.x |
@xn-sakina/mental | v3.x |
License
MIT