The only thing precommit package do, is running all the scripts listed in package.json, eg. "pre-commit": ["test", "lint"] before every git commit command.
When you install it, it sets up everything for you, so that you don't need to do or remember anything.
I have great experience in IT over 12 years: front / back - ends, mobile, system administration and deployment cycle. I implement effective and great software products.
That's exactly how it works. There is --no-verify flag (which is a default git flag, rather than any other library thing), but I doesn't recommend using it if you wish to push your commits :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The only thing
precommit
package do, is running all the scripts listed in package.json, eg."pre-commit": ["test", "lint"]
before everygit commit
command.When you install it, it sets up everything for you, so that you don't need to do or remember anything.
Sounds good, does it cancel operation
commit
in case of not successful command execution, like 'test' etc?That's exactly how it works. There is
--no-verify
flag (which is a default git flag, rather than any other library thing), but I doesn't recommend using it if you wish to push your commits :)