Skip to content

Commit

Permalink
chore: enforce conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
grantjbutler committed Feb 15, 2022
1 parent 0caf41f commit 06e0bea
Show file tree
Hide file tree
Showing 4 changed files with 2,322 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .simple-git-hooks.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"pre-commit": "npx nano-staged"
"pre-commit": "npx nano-staged",
"commit-msg": "npx --no -- commitlint --edit \"$1\""
}
23 changes: 23 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat',
'fix',
'perf',
'refactor',
'style',
'docs',
'test',
'build',
'ci',
'chore',
'revert',
'deps',
],
],
},
};
Loading

0 comments on commit 06e0bea

Please sign in to comment.