Skip to content

Commit

Permalink
chore: update husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Apr 4, 2024
1 parent 6351b6b commit 5ded317
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions .husky/commit-msg
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bun run --no -- commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

bun run lint-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lint:js": "eslint . --cache --ext .js,.jsx,.ts,.tsx",
"lint:js:fix": "eslint . --cache --ext .js,.jsx,.ts,.tsx --fix",
"mrm": "mrm --preset=@bingtsingw/mrm-preset",
"prepare": "if [ -d './node_modules/husky' ]; then husky install; fi",
"prepare": "if [ -d './node_modules/husky' ]; then husky; fi",
"release": "release-it --ci",
"test": "bun test",
"test:dev": "bun test --watch",
Expand Down

0 comments on commit 5ded317

Please sign in to comment.