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-lock.json b/package-lock.json index da424b1..1090bd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", "@vitejs/plugin-react-swc": "^3.0.0", - "husky": "^8.0.3", + "husky": "^8.0.0", "pretty-quick": "^3.1.3", "typescript": "^4.9.3", "vite": "^4.2.0" diff --git a/package.json b/package.json index 70be8c2..4109590 100644 --- a/package.json +++ b/package.json @@ -19,14 +19,9 @@ "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", "@vitejs/plugin-react-swc": "^3.0.0", - "husky": "^8.0.3", + "husky": "^8.0.0", "pretty-quick": "^3.1.3", "typescript": "^4.9.3", "vite": "^4.2.0" - }, - "husky": { - "hooks": { - "pre-commit": "pretty-quick --staged" - } } }