A pluggable and configurable GIT linter tool
npm install gint> A pluggable and configurable GIT linter tool
Gint can help with enforcing commit message patterns, branch sizes and heaps more.
``shell`
npm i gint --only=dev
_Existing hooks aren't replaced_
`shell`
npm uninstall gint
Gint requires you to create a configuration file named .gintrc in your project root. See example below.
`json`
{
"rules": {
"commit-message-pattern": ["error", "^\\[(patch|minor|major)\\]\\s.{3,}", "i"],
"commit-min-len": ["error", 10],
"commit-max-len": ["error", 512]
}
}
If you've installed Node using the standard installer, nvm or homebrew, Git hooks will be executed in GUI applications.
If nvm is installed, gint will try to use the default/current installed Node version or use the project .nvmrc.
__Tip__ to use the system-installed version of node, nvm provides a system` alias
* Husky - Heavily based on husky source code.