add git hook
This commit is contained in:
parent
121aee21dd
commit
72c1741831
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn run lint:fix
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue