5.1.0 • Published 10 months ago

bochi v5.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

bochi

tsconfig.json / prettier / biome base configs

Required: TypeScript >= 5.5 beta

Install

  pnpm add -D bochi

TSConfig

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 NameVersion
bochiv5.x
@xn-sakina/mentalv4.x
@xn-sakina/mentalv3.x

License

MIT

5.1.0

10 months ago

1.1.1

3 years ago

1.1.0

3 years ago

5.0.0

1 year ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago