TDS Commit Linter
How to use?
Just place the following code in your package.json
file. Husky is a peer-dependency which is automatically installed by this package, through it the commit-msg hook can be hooked into by our script (named tdslint
)
"husky": {
"hooks": {
"commit-msg": "tdslint"
}
}
Rules
- All commits are expected to be no more than 72 characters on their first line
- The full commit (including description) of the Commit is expected to be under 350 characters.
- The commit messages must begin with the words [CINTDS-], [ad-hoc], [release], [CINOWIO-] or [hotfix].