Error husky > pre-commit (node ​​v10.16.3) is reported when git commit is submitted

1. Error prompt:

husky> npm run -s precommit (node ​​v8.11.3)

Running tasks for *.{js,
jsx } [started] eslint –fix [started]
eslint –fix [failed]

Running tasks for *.{js, jsx } [failed]

× “eslint –fix” found some errors. Please fix them and try committing again.

Two, the solution

git commit -m "remarks information" --no-verify

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *