add git hook

This commit is contained in:
Maurits Lourens 2021-08-19 17:01:48 +02:00
parent 121aee21dd
commit 72c1741831
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"
}
}