Upgrade Husky to latest version (#26711)

Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
Jon Koops 2024-02-01 18:48:15 +01:00 committed by GitHub
parent 51d6160839
commit 3f07a9522e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 21 deletions

View file

@ -1 +0,0 @@
_

View file

@ -1,14 +1,2 @@
#!/bin/sh
# Get the path the the Husky script.
FILE="$(dirname "$0")/_/husky.sh"
# Exit if Husky is not installed.
if [ ! -f "$FILE" ]; then
exit 0;
fi
# Run the Husky script, and pre-commit hooks.
. $FILE
cd js
npx lint-staged
pnpm exec lint-staged

View file

@ -2,7 +2,7 @@
"name": "root",
"type": "module",
"scripts": {
"prepare": "cd .. && husky install js/.husky"
"prepare": "cd .. && husky js/.husky"
},
"devDependencies": {
"@types/node": "^20.11.15",
@ -18,7 +18,7 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"husky": "^9.0.9",
"lint-staged": "^15.2.1",
"prettier": "^3.2.4",
"tslib": "^2.6.2",

View file

@ -48,8 +48,8 @@ importers:
specifier: ^4.6.0
version: 4.6.0(eslint@8.56.0)
husky:
specifier: ^8.0.3
version: 8.0.3
specifier: ^9.0.9
version: 9.0.9
lint-staged:
specifier: ^15.2.1
version: 15.2.1
@ -4586,9 +4586,9 @@ packages:
engines: {node: '>=16.17.0'}
dev: true
/husky@8.0.3:
resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==}
engines: {node: '>=14'}
/husky@9.0.9:
resolution: {integrity: sha512-eW92PRr1XPKDWd7/iM2JvAl9gEKK3TF69yvbllQtKSYBw+Wtoi+P38NqH1Z7++sSd80FBkFagBFJkoQvMhCnGw==}
engines: {node: '>=18'}
hasBin: true
dev: true