chore: add Husky hooks for commitlint and lint-staged

- Install Husky with commit-msg and pre-commit hooks
- Add commitlint CLI and conventional config for enforcing commit message standards
- Configure pre-commit to run lint-staged for code quality checks
- Update bun.lock with new dev dependencies

This setup ensures consistent commit messages and automated linting before commits.
This commit is contained in:
2026-02-02 14:25:54 -06:00
parent a976eef50d
commit e343a1e252
7 changed files with 197 additions and 11 deletions

View File

@@ -6,12 +6,16 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
"astro": "astro",
"prepare": "bun .husky/install.mts"
},
"dependencies": {
"astro": "^5.17.1"
},
"devDependencies": {
"@biomejs/biome": "2.3.13"
"@biomejs/biome": "2.3.13",
"@commitlint/cli": "^20.4.1",
"@commitlint/config-conventional": "^20.4.1",
"husky": "^9.1.7"
}
}