Skip to content

Commit

Permalink
fix: correct husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
chantouchsek committed May 8, 2024
1 parent 9fc92dd commit d6cc229
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

npx --no-install commitlint --edit ""
Empty file removed .husky/common.sh
Empty file.
3 changes: 0 additions & 3 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

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

npx lint-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "nodemon",
"release": "standard-version && git push --follow-tags origin main && yarn publish",
"clean": "rimraf dist",
"prepare": "husky install",
"prepare": "husky",
"lint:js": "eslint --ext \".js,.ts\" --ignore-path .gitignore .",
"lint:prettier": "prettier --check .",
"lint": "yarn lint:js && yarn lint:prettier",
Expand Down

0 comments on commit d6cc229

Please sign in to comment.