How to configure pre-commit hook without staged?
#1290
Replies: 2 comments 1 reply
|
You can remove the |
|
The tradeoff is that current
So if your goal is “install Vite+ hooks, but never add {
"scripts": {
"prepare": "vp config --no-hooks"
}
}or: VITE_GIT_HOOKS=0 vp configBoth keep If you want this to be automatic for every clone while preserving a custom pre-commit that does not run |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Every time
vp installtriggersvp config, autoconfiguresvp check --fixand addsvp stagedcommand to pre-commit file. I don't want to check staged files. How to avoid it and keep only mypre-commitfile? I guess runningvp configis required to install the hook.All reactions