Used in the project husky, this will be the first implementation of strict mode in which you git commit time, the code inspection, error will terminate submitted
I have been thinking about how close the vue in the strict mode, the background behind and asked to say there can be ignored, and the question as follows:
When git submitted tips
The commit -m git $ " submission page " Husky > pre-the commit (the Node V10. 16.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. E:\project\hlwl-siw-pc\src\views\informationManage\sealTemplate.vue 333:30 error Expected '===' and instead saw '==' eqeqeq 338:30 error Expected '===' and instead saw '==' eqeqeq 347:29 error 'msg' is assigned a value but never used no-unused-vars 348:18 error Expected '===' and instead saw '==' eqeqeq 352:16 error Expected error to be handled handle-callback-err 379:29 error 'msg' is assigned a value but never used no-unused-vars 379:34 error 'total' is assigned a value but never used no-unused-vars 380:18 error Expected '===' and instead saw '==' eqeqeq 390:16 error Expected error to be handled handle-callback-err 410:27 error Expected '===' and instead saw '==' eqeqeq 425:23 error 'data' is assigned a value but never used no-unused-vars 425:29 error 'msg' is assigned a value but never used no-unused-vars 425:34 error 'total' is assigned a value but never used no-unused-vars 426:18 error Expected '===' and instead saw '==' eqeqeq 433:16 error Expected error to be handled handle-callback-err 441:33 error Expected '===' and instead saw '==' eqeqeq 494:22 error Expected '===' and instead saw '==' eqeqeq 502:20 error Expected error to be handled handle-callback-err 519:23 error Expected '===' and instead saw '==' eqeqeq 531:23 error Expected '===' and instead saw '==' eqeqeq ✖ 20 problems (20 errors, 0 warnings) husky > pre-commit hook failed (add --no-verify to bypass)
Solution:
the commit -m git "submission page Remarks" --no-the Verify
Not required to be changed, the time of filing of this submission, you can bypass the check of the eslint
The big brother of the reasons described in great detail: git husky detect the commit before the pre-commit
What are the rules of strict mode Click here to see a lot of ads.