11. Hooks + Automation

8 cards

Review this deck
All cards in this deck

`.git/hooks/`

local hooks (not shared via git)

`.husky/`

hooks via Husky (shared via npm, committed to the repository)

`pre-commit`

lint, format, checks before committing

`commit-msg`

validate the Conventional Commits format

`pre-push`

run the test suite before pushing

`post-merge`

run `npm install` if package.json changed

`package.json`

`"lint-staged": { "*.ts": ["eslint --fix", "prettier --write"] }`

`commitlint.config.js`

`module.exports = { extends: ['@commitlint/config-conventional'] }`

11. Hooks + Automation – Flashcards – Git | Học Dev