husky
#Node.js
#Git_hooks
https://github.com/typicode/husky
CLI
セットアップ
code:sh
$ yarn husky install
# core.hooksPathが更新される
$ git config core.hooksPath
.husky
フックの追加
code:sh
$ yarn husky add .husky/pre-commit "yarn lint"
フックの更新
code:sh
$ yarn husky set .husky/pre-commit "yarn lint-staged"