Browse Source

upgrade husky hooks config

pull/2551/head
afc163 8 years ago
parent
commit
0758cf4218
  1. 8
      package.json

8
package.json

@ -4,7 +4,6 @@
"description": "An out-of-box UI solution for enterprise applications",
"private": true,
"scripts": {
"precommit": "npm run lint-staged",
"presite": "node ./scripts/generateMock.js && cd functions && npm install",
"start": "cross-env APP_TYPE=site umi dev",
"start:no-mock": "cross-env MOCK=none umi dev",
@ -104,5 +103,10 @@
"> 1%",
"last 2 versions",
"not ie <= 10"
]
],
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
}
}

Loading…
Cancel
Save