Skip to content

Commit 6a0a601

Browse files
committed
chore(husky): update config
1 parent 1224837 commit 6a0a601

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

.husky/commit-msg

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
export NVM_DIR="$HOME/.nvm"
5+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
6+
7+
npx --no-install commitlint --edit $1

.husky/pre-commit

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
export NVM_DIR="$HOME/.nvm"
5+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
6+
7+
npx --no-install lint-staged

.husky/pre-push

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
export NVM_DIR="$HOME/.nvm"
5+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
6+
7+
npx branch-name-lint .branchlintrc

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"eslint-plugin-security": "3.0.1",
8282
"finalhandler": "1.2.0",
8383
"get-port-please": "3.1.2",
84-
"husky": "9.0.11",
84+
"husky": "^9.0.11",
8585
"jsdom": "24.1.0",
8686
"lint-staged": "15.2.7",
8787
"markdown-it-inline-comments": "1.0.1",

0 commit comments

Comments
 (0)