Public Theta Blog

`husky`を追加する

npm install husky -D
npm set-script prepare "husky install"
npm run prepare
npx husky add .husky/pre-commit "npm run precommit"

例えば、

npm set-script precommit "npm run check && npm run lint && npm run format"