feat(omiv): add husky

This commit is contained in:
mrjzhang 2019-11-11 13:50:13 +08:00
parent 8044817fd9
commit 3f108075a2
3 changed files with 7 additions and 1 deletions

5
packages/omiv/.huskyrc Normal file
View File

@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "npm run fix"
}
}

View File

@ -83,6 +83,7 @@
"eslint-plugin-react": "^7.7.0",
"flow-bin": "^0.67.1",
"gzip-size-cli": "^2.0.0",
"husky": "^3.0.9",
"istanbul-instrumenter-loader": "^3.0.0",
"jest": "^23.6.0",
"jscodeshift": "^0.5.0",

View File

@ -229,4 +229,4 @@ obaa.set = function(obj, prop, value) {
/* eslint-disable */
Array.prototype.size = function (length) {
this.length = length
}
}