git-hooks
/
1.1.65
git-hooks 1.1.65
Install from the command line:
Learn more about npm packages
$ npm install @leanupjs/git-hooks@1.1.65
Install via package.json:
"@leanupjs/git-hooks": "1.1.65"
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-1.1.65-npm.tgz
Download activity
- Total downloads 2
- Last 30 days 0
- Last week 0
- Today 0