git-hooks
/
2.0.0-rc.51
git-hooks 2.0.0-rc.51
Install from the command line:
Learn more about npm packages
$ npm install @leanupjs/git-hooks@2.0.0-rc.51
Install via package.json:
"@leanupjs/git-hooks": "2.0.0-rc.51"
About this version
This module contains some nice tools to organize git hooks for NodeJs projects.
npm install @leanup/git-hooks --save-dev
Add the following configuration to you package.json
:
{
...
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"{src,tests}/**/*.{html,js,json,jsx,ts,tsx,gql,graphql}": [
"eslint"
],
"{src,tests}/**": [
"prettier --check"
]
},
...
}
After that create a commitlint configuration file commitlint.config.js
in your project folder and insert the following code:
module.exports = require('@leanup/git-hooks/commitlint.config');
Assets
- git-hooks-2.0.0-rc.51-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0