We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9128cf commit e1f9c3bCopy full SHA for e1f9c3b
commitlint.config.js
@@ -0,0 +1,12 @@
1
+module.exports = {
2
+ extends: ['@commitlint/config-conventional'],
3
+ rules: {
4
+ "type-enum": [2, "always", [
5
+ 'feat',
6
+ 'fix',
7
+ 'docs',
8
+ 'test',
9
+ 'chore'
10
+ ]]
11
+ }
12
+}
package.json
@@ -25,6 +25,8 @@
25
"yargs": "^8.0.2"
26
},
27
"devDependencies": {
28
+ "@commitlint/cli": "^7.5.2",
29
+ "@commitlint/config-conventional": "^7.5.0",
30
"generate-changelog": "^1.7.1",
31
"husky": "^2.1.0",
32
"jest": "^20.0.4",
@@ -56,7 +58,8 @@
56
58
57
59
"husky": {
60
"hooks": {
- "pre-commit": "lint-staged"
61
+ "pre-commit": "lint-staged",
62
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
63
}
64
65
"lint-staged": {
0 commit comments