chore: update husky config.

This commit is contained in:
jaywcjlove 2024-02-26 16:10:09 +08:00
parent 706fe7855f
commit fae20e6a71
2 changed files with 1 additions and 4 deletions

3
.husky/pre-commit vendored
View File

@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no-install lint-staged

View File

@ -8,7 +8,7 @@
"funding": "https://jaywcjlove.github.io/#/sponsor",
"private": false,
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"build": "refs-cli",
"start": "refs-cli --watch",
"prettier": "prettier --write '**/*.{mjs,css,json,prettierrc,lintstagedrc}'",