Skip to content

Commit

Permalink
build(deps-dev): install husky and commitlint locally
Browse files Browse the repository at this point in the history
Signed-off-by: Cotes Chung <[email protected]>
  • Loading branch information
cotes2020 committed Jan 13, 2024
1 parent 96bdd7c commit c5d1144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint -x $(npm root -g)/@commitlint/config-conventional --edit
npx --no -- commitlint --edit ${1}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
"@babel/core": "^7.23.7",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/preset-env": "^7.23.7",
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"husky": "^8.0.3",
"rimraf": "^5.0.5",
"rollup": "^4.9.2",
"rollup-plugin-license": "^3.2.0",
Expand All @@ -41,6 +44,9 @@
"not dead"
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
0,
Expand Down

0 comments on commit c5d1144

Please sign in to comment.