Created
October 23, 2019 10:07
-
-
Save ammarnajjar/32e4dda76abecc7acc7209c49440e169 to your computer and use it in GitHub Desktop.
validate commit-msg hook using husky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"types": [ | |
"feat", | |
"fix", | |
"docs", | |
"style", | |
"refactor", | |
"perf", | |
"test", | |
"build", | |
"ci", | |
"chore", | |
"revert" | |
], | |
"scope": { | |
"required": false, | |
"allowed": ["*"], | |
"validate": false, | |
"multiple": false | |
}, | |
"warnOnFail": false, | |
"maxSubjectLength": 100, | |
"subjectPattern": ".+", | |
"subjectPatternErrorMsg": "subject does not match subject pattern!", | |
"helpMessage": "Check the correct format on: ... ", | |
"autoFix": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"husky": "^3.0.9", | |
"validate-commit-msg": "^2.14.0" | |
}, | |
"husky": { | |
"hooks": { | |
"commit-msg": "validate-commit-msg" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment