File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,22 +27,23 @@ This will replace commit-msg in your .git/hooks folder with code, that will run
2727Configuration is simple and is done in ` package.json ` , you just need to add git-commit-msg object:
2828
2929``` js
30- " git-commit-msg" : {
31- types: [
32- ' feat' ,
33- ' fix' ,
34- ' chore' ,
35- ' docs' ,
36- ' refactor' ,
37- ' style' ,
38- ' perf' ,
39- ' test' ,
40- ' revert'
41- ]
30+ " git-commit-hook" : {
31+ " types" : [
32+ " feat" ,
33+ " fix" ,
34+ " chore" ,
35+ " docs" ,
36+ " refactor" ,
37+ " style" ,
38+ " perf" ,
39+ " test" ,
40+ " revert"
41+ ],
42+ " lineLength" : 72
4243}
4344```
4445
45- This will add rules, so your git commit messages must start using those types like
46+ git-commit-hook.types (array of strings) will add rules, so your git commit messages must start using those types like
4647```
4748feat: <message>
4849```
5354feat(scope/filename): <message>
5455```
5556
57+ git-commit-hook.lineLength (integer) will make sure that lines in your commit message are always less or equal to the number you set into this config
58+
5659This package is WIP, so propose your ideas - open issue or create pull request.
You can’t perform that action at this time.
0 commit comments