11. Hooks + Automation

8 thẻ

Review deck này
Tất cả thẻ trong deck

`.git/hooks/`

local hooks (không share qua git)

`.husky/`

hooks qua Husky (share qua npm, commit vào repo)

`pre-commit`

lint, format, kiểm tra trước khi commit

`commit-msg`

validate Conventional Commits format

`pre-push`

chạy test suite trước khi push

`post-merge`

chạy `npm install` nếu package.json thay đổi

`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