Migrate to husky 8

This commit is contained in:
Norbert Renner 2022-07-22 18:08:13 +02:00
parent 58da7fc6ab
commit 3053497554
2 changed files with 6 additions and 6 deletions

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn pretty-quick --bail && yarn lint

View file

@ -12,12 +12,8 @@
"lint": "eslint .",
"prettier": "prettier --write '**/*'",
"serve": "gulp serve watch",
"standalone": "../brouter/gradlew -p ../brouter clean build && ../brouter/misc/scripts/generate_profile_variants.sh && gulp release:zip_standalone"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --bail && yarn lint"
}
"standalone": "../brouter/gradlew -p ../brouter clean build && ../brouter/misc/scripts/generate_profile_variants.sh && gulp release:zip_standalone",
"prepare": "husky install"
},
"repository": {
"type": "git",