Commit 3e28368b authored by lipengcheng 's avatar lipengcheng

x

parent bddaa365
const tasks = (arr) => arr.join(' && ')
module.exports = {
// hooks: {
// 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
// 'pre-commit': 'yarn test -u && git add *.md *.snap',
// 'pre-push': 'yarn lint && yarn test'
// }
hooks: {
'pre-commit': 'lint-staged',
// 'pre-commit': tasks(['lint-staged', 'yarn commit']),
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
'pre-push': "echo 'pushing....'",
},
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment