Skip to content

Commit 7b1a372

Browse files
committed
chore: use commitlint
1 parent 41a7f74 commit 7b1a372

File tree

3 files changed

+753
-25
lines changed

3 files changed

+753
-25
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ${1}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
"@babel/plugin-transform-runtime": "^7.12.10",
3737
"@babel/preset-env": "^7.11.5",
3838
"@babel/runtime": "^7.15.4",
39+
"@commitlint/cli": "^17.4.3",
40+
"@commitlint/config-conventional": "^17.4.3",
3941
"@typescript-eslint/parser": "^5.0.0",
4042
"babel-loader": "^8.0.6",
4143
"better-docs": "^2.3.2",
@@ -68,4 +70,4 @@
6870
"webpack-cli": "^4.9.2",
6971
"webpack-dev-server": "^4.7.4"
7072
}
71-
}
73+
}

0 commit comments

Comments
 (0)