Skip to content

Commit 89453d7

Browse files
author
Truong Nguyen
committed
chore: enable conventional comits
1 parent 5248693 commit 89453d7

File tree

5 files changed

+660
-131
lines changed

5 files changed

+660
-131
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit ""

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {extends: ['@commitlint/config-conventional']}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
],
3333
"license": "MIT",
3434
"devDependencies": {
35+
"@commitlint/cli": "^12.1.4",
36+
"@commitlint/config-conventional": "^12.1.4",
3537
"@types/chai": "^4.1.4",
3638
"@types/ip": "0.0.31",
3739
"@types/mocha": "^5.2.5",
@@ -43,7 +45,7 @@
4345
"chai": "^4.1.2",
4446
"eslint": "^7.29.0",
4547
"gh-pages": "^1.2.0",
46-
"husky": "^1.0.0-rc.13",
48+
"husky": "^6.0.0",
4749
"mocha": "^5.2.0",
4850
"mochawesome": "^3.0.3",
4951
"nyc": "^13.0.1",

0 commit comments

Comments
 (0)