tsconfig.json
/ prettier
/ biome
base configs
Required: TypeScript >=
5.5 beta
pnpm add -D bochi
Common config:
- Default source dir:
src
- Default output dir:
dist
- Default include:
src
// tsconfig.json
{
"extends": "bochi/lib"
}
Required:
package.json
>"type": "module"
// tsconfig.json
{
"extends": "bochi/lib-native-esm"
}
{
"extends": "bochi/lib-react"
}
Required: TypeScript >=
5
{
"extends": "bochi/project",
"include": ["src"]
}
{
"compilerOptions": {
// upgrade output syntax target
"target": "es6",
// generate declaration source map
"declarationMap": true
// ...
}
}
// .prettierrc.js
module.exports = require('bochi/prettier')
// biome.json
{
"extends": ["./node_modules/bochi/biome.json"]
}
Package Name | Version |
---|---|
bochi |
v5.x |
@xn-sakina/mental |
v4.x |
@xn-sakina/mental |
v3.x |
MIT