Skip to content

Commit

Permalink
fix: commitlint: adds custom commitlint config (EightfoldAI#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilgore-eightfold authored and gclark-eightfold committed Apr 27, 2022
1 parent 6b66ab9 commit 8ab679b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/octuple/.husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
2 changes: 0 additions & 2 deletions packages/octuple/.husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged

npx --no-install commitlint --edit "$1"
25 changes: 25 additions & 0 deletions packages/octuple/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'header-max-length': [0, 'always', 100],
'subject-case': [0],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
'scope-empty': [0],
},
};

0 comments on commit 8ab679b

Please sign in to comment.