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:
8
.husky/install.mts
Normal file
8
.husky/install.mts
Normal file
@@ -0,0 +1,8 @@
|
||||
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
|
||||
console.log(
|
||||
'Skipping husky install. If you are in a CI, Building or Production environment you can ignore this.'
|
||||
)
|
||||
process.exit(0)
|
||||
}
|
||||
const husky = (await import('husky')).default
|
||||
console.log(husky())
|
||||
Reference in New Issue
Block a user