Skip to content

Commit

Permalink
build(husky): update husky config for v9
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed May 18, 2024
1 parent 4a4435f commit 2a55681
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn commitlint --edit $1
2 changes: 0 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn precise-commits
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"commit": "cz",
"fix": "tsc --noEmit && eslint . --fix && prettier --write .",
"postinstall": "husky install",
"postinstall": "husky",
"lint": "tsc --noEmit && eslint . && prettier --check .",
"prepack": "tsc",
"test": "ava"
Expand Down

0 comments on commit 2a55681

Please sign in to comment.