Skip to content

Commit

Permalink
Upgrade Husky to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Jan 28, 2024
1 parent 4ff5b01 commit a48429a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 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
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint:eslint": "eslint --ext js,jsx --max-warnings 0",
"lint:fix": "npm run lint:eslint -- --fix . && npm run lint:prettier -- --write .",
"lint:prettier": "prettier --ignore-unknown",
"prepare": "husky install || echo 'no husky 🐶'",
"prepare": "husky || echo 'no husky 🐶'",
"preserve": "npm run build",
"serve": "npm start",
"ship": "npm run lint && npm run test && npm run e2e",
Expand Down Expand Up @@ -53,7 +53,7 @@
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^8.0.3",
"husky": "^9.0.6",
"lint-staged": "^15.2.0",
"nyc": "^15.1.0",
"prettier": "^3.2.4"
Expand Down

0 comments on commit a48429a

Please sign in to comment.