bochi

5.0.0 • Public • Published

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"]
}

Optimizations

{
  "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

/bochi/

    Package Sidebar

    Install

    npm i bochi

    Weekly Downloads

    2

    Version

    5.0.0

    License

    MIT

    Unpacked Size

    6.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • fz6m