mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
feat: Enable git hooks with husky (#4984)
* build(deps): Adds husky for Git hooks - Integrates the husky package as a development dependency. - Enables the configuration and enforcement of pre-commit and pre-push Git hooks. - Improves code quality and consistency by automating checks before commits. Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com> * feat: Add Husky prepare hook - Automatically installs Git hooks for developers - Ensures consistent code quality checks before commits or pushes - Streamlines the developer setup process Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com> * ci: Avoid installing Git Hooks on GitHub Workflows - Adds `HUSKY: 0` environment variable to all workflow definitions. - Prevents local development hooks from executing in CI, which can cause unnecessary failures or overhead. - See https://typicode.github.io/husky/how-to.html#ci-server-and-docker Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com> --------- Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com>
This commit is contained in:
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -213,6 +213,9 @@ importers:
|
||||
https-proxy-agent:
|
||||
specifier: ^7.0.6
|
||||
version: 7.0.6
|
||||
husky:
|
||||
specifier: ^9.1.7
|
||||
version: 9.1.7
|
||||
jiti:
|
||||
specifier: ^2.6.1
|
||||
version: 2.6.1
|
||||
@@ -2832,6 +2835,11 @@ packages:
|
||||
resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
|
||||
engines: {node: '>= 14'}
|
||||
|
||||
husky@9.1.7:
|
||||
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
|
||||
engines: {node: '>=18'}
|
||||
hasBin: true
|
||||
|
||||
i18next@25.5.3:
|
||||
resolution: {integrity: sha512-joFqorDeQ6YpIXni944upwnuHBf5IoPMuqAchGVeQLdWC2JOjxgM9V8UGLhNIIH/Q8QleRxIi0BSRQehSrDLcg==}
|
||||
peerDependencies:
|
||||
@@ -7163,6 +7171,8 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
husky@9.1.7: {}
|
||||
|
||||
i18next@25.5.3(typescript@5.9.3):
|
||||
dependencies:
|
||||
'@babel/runtime': 7.28.4
|
||||
|
||||
Reference in New Issue
Block a user