diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..0da96d6 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npx pretty-quick --staged diff --git a/package.json b/package.json index df06cf2..6dddedc 100644 --- a/package.json +++ b/package.json @@ -45,10 +45,5 @@ "assets": [ "./node_modules/axios/dist/node/axios.cjs" ] - }, - "husky": { - "hooks": { - "pre-commit": "pretty-quick --staged" - } } }