包详细信息

@bokub/prettier-config

bokub1.7kMIT2.1.0

bokub's favorite prettier config

prettier, config, prettier-config

自述文件

@bokub / prettier-config

Code style Downloads

My personal Prettier config / workflow

Install

npm i -D prettier @bokub/prettier-config

Add the following to your package.json:

{
  "prettier": "@bokub/prettier-config"
}

Optional: Setup pre-commit hook

npx husky-init
npm i -D pretty-quick
npx husky set .husky/pre-commit 'pretty-quick --staged'

Optional: Run prettier on old code

npx prettier --write .