Skip to content

Commit c5d1144

Browse files
committed
build(deps-dev): install husky and commitlint locally
Signed-off-by: Cotes Chung <[email protected]>
1 parent 96bdd7c commit c5d1144

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no -- commitlint -x $(npm root -g)/@commitlint/config-conventional --edit
4+
npx --no -- commitlint --edit ${1}

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
"@babel/core": "^7.23.7",
2525
"@babel/plugin-proposal-class-properties": "^7.18.6",
2626
"@babel/preset-env": "^7.23.7",
27+
"@commitlint/cli": "^18.4.4",
28+
"@commitlint/config-conventional": "^18.4.4",
2729
"@rollup/plugin-babel": "^6.0.4",
2830
"@rollup/plugin-terser": "^0.4.4",
31+
"husky": "^8.0.3",
2932
"rimraf": "^5.0.5",
3033
"rollup": "^4.9.2",
3134
"rollup-plugin-license": "^3.2.0",
@@ -41,6 +44,9 @@
4144
"not dead"
4245
],
4346
"commitlint": {
47+
"extends": [
48+
"@commitlint/config-conventional"
49+
],
4450
"rules": {
4551
"body-max-line-length": [
4652
0,

0 commit comments

Comments
 (0)