diff --git a/.husky/pre-commit b/.husky/pre-commit index 9164d52..354655c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npm run fix +npm run lint:fix +npm run prettier:fix diff --git a/package.json b/package.json index 9bfaafe..6c6b15f 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,8 @@ "test": "jest --config ./jest.config.js", "test:coverage": "npm run test -- --coverage", "bundlewatch": "npm run build && bundlewatch", - "prepublish": "npm run fix && npm run type && npm run test && npm run build" + "prepublish": "npm run fix && npm run type && npm run build", + "prepare": "husky install" }, "engines": { "node": ">=18" @@ -78,7 +79,7 @@ "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-simple-import-sort": "^10.0.0", - "husky": "^8.0.3", + "husky": "^8.0.0", "jest": "^29.4.3", "jest-environment-jsdom": "^29.4.3", "jest-watch-typeahead": "^2.2.2",