Skip to content

Commit

Permalink
refactor(husky): migrate to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 26, 2024
1 parent 3658c73 commit c425c25
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"

pnpm commitlint --config .commitlintrc.cjs --edit "$1"
pnpm commitlint --config .commitlintrc.cjs --edit "$1"
4 changes: 0 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"

pnpm lint-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"lint": "eslint --ext .js,.ts,.vue . && nuxt typecheck",
"lint:fix": "eslint --ext .js,.ts,.vue --fix . && nuxt typecheck --fix",
"prepack": "pnpm build",
"prepare": "husky install"
"prepare": "husky"
},
"type": "module",
"types": "./dist/module.d.ts",
Expand Down

0 comments on commit c425c25

Please sign in to comment.