iview / iview-admin

Vue 2.0 admin management system template based on iView
https://admin.iviewui.com/
MIT License
16.47k stars 4.85k forks source link

vue-cli-service lint .如何关闭 #1040

Open anprettyboy opened 5 years ago

anprettyboy commented 5 years ago

每次提交代码之前都会以下报错,导致无法提交: 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

Wsmallnews commented 5 years ago

I also encountered the same problem

Wsmallnews commented 5 years ago

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

anprettyboy commented 5 years ago

多谢🙏

Marthers 邮箱:nmzyg252@163.com

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.

jeneybu commented 5 years ago

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