commit-message-validator
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "commit-message-validator", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Git commit-msg hook validator", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"chalk": "^1.1.3", | ||
"find-git-root": "^0.1.0", | ||
"find-git-root": "^0.1.2", | ||
"find-root": "^1.0.0", | ||
@@ -39,0 +39,0 @@ "fs": "^0.0.1-security", |
@@ -23,4 +23,6 @@ # commit-message-validator | ||
{ | ||
scripts: { | ||
"commitmsg": "commit-message-validator" | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commit-message-validator" | ||
} | ||
} | ||
@@ -33,3 +35,3 @@ } | ||
"commit-message-validator": { | ||
/* your config here */ | ||
"_comment": "pattern can be Regex string or array of Regex string", | ||
"pattern": "your regex pattern here", | ||
@@ -40,20 +42,1 @@ "errorMessage": "your error message" | ||
} | ||
Or | ||
{ | ||
"config": { | ||
"commit-message-validator": { | ||
/* your config here, pattern can be an array */ | ||
"pattern": [ | ||
"pattern1", | ||
"pattern2", | ||
/* ... */ | ||
"pattern N" | ||
], | ||
"errorMessage": "your error message" | ||
} | ||
} | ||
} | ||
6214
7
40
Updatedfind-git-root@^0.1.2