You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to simulate the effect of TODO before Git commit like webStorm.
If TODO is detected, the commit action will be suspended, and the subsequent commit action will continue after the developer clicks to confirm.
Otherwise, the commit action will not be executed.
So I want to use husk+pre-commit to add an npm run checkTodo script to achieve my goal.
How can I use the command mode of npm run to perform checks?
"husky": {
"hooks": {
"pre-commit": "npm run checkTodo && npm run lint"
}
}
I used the translation tool to translate Chinese into English, and did a little keyword repair. The sentence may not be very smooth, where you don't understand, please timely @ me.
Thanks!
The text was updated successfully, but these errors were encountered:
I want to simulate the effect of TODO before Git commit like webStorm.
If TODO is detected, the commit action will be suspended, and the subsequent commit action will continue after the developer clicks to confirm.
Otherwise, the commit action will not be executed.
So I want to use husk+pre-commit to add an npm run checkTodo script to achieve my goal.
How can I use the command mode of npm run to perform checks?
I used the translation tool to translate Chinese into English, and did a little keyword repair. The sentence may not be very smooth, where you don't understand, please timely @ me.
Thanks!
The text was updated successfully, but these errors were encountered: