Closed C83 closed 6 years ago
node -v
=> ok yarn --version
=> yarn installed$ yarn add husky --dev
gem 'annotate'
then bundle install
. Using it with annotate
command."scripts": {
"precommit": "rubocop -a && annotate",
"prepush": "rubocop -a && rpsec && annotate"
}
nodes_modules/*
in .gitignore
Why ?
Husky is a tool to run commands before each commit and push. It block a commit/push if everything is not perfect.
We are all lazy. Husky helps us by forcing us to keep our code base clean and tested.
Must have
yarn add husky
https://github.com/typicode/huskyDO NOT USE NPM
.gitignore