diff --git a/.husky/pre-commit b/.husky/pre-commit index f2b1ea5..ca0c8bf 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx lint-staged && npm run prettier diff --git a/package.json b/package.json index 3ebb44b..aa939ec 100644 --- a/package.json +++ b/package.json @@ -68,10 +68,12 @@ "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.34.0", "eslint-plugin-react-hooks": "^4.6.0", + "lint-staged": "^15.2.7", "prettier": "^3.2.5", "prettier-eslint-cli": "^8.0.1", "typescript": "5.1.6", - "vite-tsconfig-paths": "^4.3.1" + "vite-tsconfig-paths": "^4.3.1", + "husky": "^8.0.0" }, "scripts": { "start": "npx husky install & vite",