0.1.1 • Published 2 years ago
husky-git-hooks v0.1.1
husky-git-hooks
Configured husky hooks for using "from the box"
Install
npm i husky-git-hooks --save-dev
or
yarn add -D husky-git-hooks
Usage
After installing the package, use commands bellow to configure husky git hooks:
npx husky-git-hooks install
or
yarn husky-git-hooks install
After this you will have already configured git hooks in ./.husky
folder.
Also, you can use the flag -lint-staged
during installation if you want to use sint-staged tool for checking your code with eslint. You need to configure eslint for your project, and check configurations for lint-staged in file ./.lintstagedrc.json
.
Used packages
package | documentation |
---|---|
husky | https://typicode.github.io/husky |
lint-staged | https://codecov.io/gh/okonet/lint-staged/ |