Migrate to husky 8
This commit is contained in:
parent
58da7fc6ab
commit
3053497554
2 changed files with 6 additions and 6 deletions
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
yarn pretty-quick --bail && yarn lint
|
||||||
|
|
@ -12,12 +12,8 @@
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"prettier": "prettier --write '**/*'",
|
"prettier": "prettier --write '**/*'",
|
||||||
"serve": "gulp serve watch",
|
"serve": "gulp serve watch",
|
||||||
"standalone": "../brouter/gradlew -p ../brouter clean build && ../brouter/misc/scripts/generate_profile_variants.sh && gulp release:zip_standalone"
|
"standalone": "../brouter/gradlew -p ../brouter clean build && ../brouter/misc/scripts/generate_profile_variants.sh && gulp release:zip_standalone",
|
||||||
},
|
"prepare": "husky install"
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "pretty-quick --bail && yarn lint"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue