1
0
Fork 0
mirror of synced 2024-05-07 14:02:41 +12:00

add git hook

This commit is contained in:
Maurits Lourens 2021-08-19 17:01:48 +02:00
parent 2c0e6ff1a8
commit 780d9ea1c0
2 changed files with 5 additions and 6 deletions

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn run lint:fix

View file

@ -47,11 +47,6 @@
"build:docker:develop": "node scripts/pinVersions && lerna run build:docker && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh develop && cd -",
"multi:enable": "lerna run multi:enable",
"multi:disable": "lerna run multi:disable",
"prepare": "husky install"
},
"husky": {
"hooks": {
"pre-commit": "yarn run lint:fix"
}
"postinstall": "husky install"
}
}