tsconfig.json / prettier / biome / dprint base configs
Required: TypeScript >=
5.5 beta
pnpm add -D bochiCommon 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"]
}// dprint.json
{
"extends": "./node_modules/bochi/dprint.json"
}| Package Name | Version |
|---|---|
bochi |
v5.x |
@xn-sakina/mental |
v4.x |
@xn-sakina/mental |
v3.x |
MIT