Skip to content

Commit

Permalink
Other: Add commitlint and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
olexandr-mazepa committed Jul 19, 2021
1 parent 86e3f93 commit 852295b
Show file tree
Hide file tree
Showing 4 changed files with 1,139 additions and 618 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
10 changes: 10 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// 'scope-empty': [0],
// 'footer-empty': [0, 'never'],
'type-enum': [2, 'always', ['Breaking', 'Feature', 'Fix', 'Other']],
'type-case': [2, 'always', 'pascal-case'],
'subject-case': [2, 'always', 'sentence-case']
},
};
Loading

0 comments on commit 852295b

Please sign in to comment.