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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user