Remove husky from package.json, add pre-commit hook to .husky instead.

This commit is contained in:
Mario Zechner 2023-06-03 00:41:04 +02:00
parent 1cc61d0cb7
commit 052cbaf30e
2 changed files with 4 additions and 5 deletions

4
.husky/pre-commit Executable file
View File

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

View File

@ -45,10 +45,5 @@
"assets": [
"./node_modules/axios/dist/node/axios.cjs"
]
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}