README
validate-commit-email
Validate the email of the current committer in your commit message hook.
If you are using husky, add this to your package.json
:
"scripts": {
…
"commitmsg": "validate-commit-email @example.com
Validate the email of the current committer in your pre-commit hook.
<script type="module">
import validateCommitEmail from 'https://cdn.skypack.dev/validate-commit-email';
</script>
Validate the email of the current committer in your commit message hook.
If you are using husky, add this to your package.json
:
"scripts": {
…
"commitmsg": "validate-commit-email @example.com
quot; }
This will enforce all committers to use an email that ends with @example.com
.