Iview-admin: vue-cli-service lint .如何关闭

Created on 19 Oct 2018  ·  4Comments  ·  Source: iview/iview-admin

每次提交代码之前都会以下报错,导致无法提交:
running pre-commit hook: lint-staged
❯ Running tasks for *.js
✖ vue-cli-service lint
→ 1 error found.
git add
❯ Running tasks for *.vue
✖ vue-cli-service lint
→ 5 errors found.
git add
✖ vue-cli-service lint found some errors. Please fix them and try committing again.

有没什么方法关闭这个eslint

Most helpful comment

删除 package.json 里面的
"gitHooks": {
"pre-commit": "lint-staged"
},

All 4 comments

I also encountered the same problem

删除 package.json 里面的
"gitHooks": {
"pre-commit": "lint-staged"
},

多谢🙏

| |
Marthers
邮箱:[email protected]
|

Signature is customized by Netease Mail Master

在2018年10月24日 19:06,吴小新 写道:

删除 package.json 里面的
"gitHooks": {
"pre-commit": "lint-staged"
},


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

删除 package.json 里面的
"gitHooks": {
"pre-commit": "lint-staged"
},
Thank you very much

Was this page helpful?
0 / 5 - 0 ratings