Skip to content

Commit

Permalink
Merge pull request #58 from uncrunch-app/chore/commitlint
Browse files Browse the repository at this point in the history
Chore/commitlint
  • Loading branch information
teplostanski authored Oct 14, 2024
2 parents c4f5d80 + 9be56ef commit 4e1916c
Show file tree
Hide file tree
Showing 6 changed files with 793 additions and 84 deletions.
2 changes: 2 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
commitlint --edit "$1"
# npx --no-install commitlint --edit "$1"
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# npm run test
23 changes: 23 additions & 0 deletions commitlint.config.cjs
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',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'lint',
],
],
},
}
Loading

0 comments on commit 4e1916c

Please sign in to comment.