Skip to content

Commit

Permalink
chore(husky): fix pre-commit lastest version
Browse files Browse the repository at this point in the history
* Husky pre-commit fails with code 1

- (#1014): typicode/husky#1014
  • Loading branch information
trants committed Jul 19, 2024
1 parent c9d51e9 commit 717e2a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged && npm run prettier
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 717e2a8

Please sign in to comment.