iview-admin icon indicating copy to clipboard operation
iview-admin copied to clipboard

vue-cli-service lint .如何关闭

Open anprettyboy opened this issue 6 years ago • 4 comments

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

anprettyboy avatar Oct 19 '18 04:10 anprettyboy

I also encountered the same problem

Wsmallnews avatar Oct 22 '18 01:10 Wsmallnews

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

Wsmallnews avatar Oct 24 '18 11:10 Wsmallnews

多谢🙏

| | 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.

anprettyboy avatar Oct 31 '18 09:10 anprettyboy

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

jeneybu avatar Aug 17 '19 06:08 jeneybu