赞
踩
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - husky > pre-commit (node v14.15.0) Stashing changes... [started] Stashing changes... [skipped] → No partially staged files found... Running linters... [started] Running tasks for src/**/*.{js,vue} [started] eslint --fix [started] eslint --fix [failed] → Running tasks for src/**/*.{js,vue} [failed] → Running linters... [failed] × eslint --fix found some errors. Please fix them and try committing again. D:\BeysondItems\01runliancompany\04cms-v2-front\src\views\dashboard\components\settings.vue 356:33 error Parsing error: invalid-first-character-of-tag-name vue/no-parsing-error 356:43 error Parsing error: invalid-first-character-of-tag-name vue/no-parsing-error 356:47 error Parsing error: invalid-first-character-of-tag-name vue/no-parsing-error ✖ 3 problems (3 errors, 0 warnings) husky > pre-commit hook failed (add --no-verify to bypass)
项目中 package.json中配置了
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
git commit -m "提交页面备注 绕过eslint检查" --no-verify
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。