How does "precommit" script work in package.json?
[issue link]Excuse me.
I’m confused about the “precommit” script in package.json:
"precommit": "npm run lint",
How can I trigger this script?
Like executing npm run precommit? Or add a hook in .git manually?
What is the best practice to do?
And what is your way to trigger this script?
Thanks first ฅ’ ω 'ฅ