Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 708a418

Browse files
committed
test commit lint
1 parent b445761 commit 708a418

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.commitlintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'type-enum': [
5+
2,
6+
'always',
7+
['upd', 'feat', 'fix', 'refactor', 'docs', 'chore', 'style', 'revert'],
8+
],
9+
'type-case': [0],
10+
'type-empty': [0],
11+
'scope-empty': [0],
12+
'scope-case': [0],
13+
'subject-full-stop': [0, 'never'],
14+
'subject-case': [0, 'never'],
15+
'header-max-length': [0, 'always', 72],
16+
},
17+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
},
5858
"husky": {
5959
"hooks": {
60+
"commit-msg": "commitlint -E $HUSKY_GIT_PARAMS",
6061
"pre-commit": "lint-staged"
6162
}
6263
},

0 commit comments

Comments
 (0)