New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npx mrm lint-staged
does not work after husky v5+
#952
Comments
I opened an issue on the mrm repo: sapegin/mrm#145 For this repo the possible fixes are:
Upstream the two proposed fixes are:
Please note there are license complications with Husky 5 right now (it's no longer MIT and sponsorship is required for non open source usage), if you're a closed source project you should be sponsoring or sticking with 4.x. typicode/husky#857 Edit: There's now an upstream fix proposed sapegin/mrm#146, lint-staged should still consider updating the docs with information for husky 5! |
* downgrades husky to v4 - lint-staged/lint-staged#952 * excludes husky from dependency-updating script in the meantime
* downgrades husky to v4 - lint-staged/lint-staged#952 * excludes husky from dependency-updating script in the meantime
Are there any plans to make |
@ali-farooq0 |
@iiroj |
I would go with the example at Automatic (recommended): npx husky add .husky/pre-commit 'npx --no-install lint-staged' Personally I have not had success with upgrading to Husky v5 due to numerous issues, so I've stayed at v4... |
Will give that a shot. Thanks! Yeah for now I've decided to do the same :D |
Description
Steps to reproduce
npx mrm lint-staged
git commit
and you will notice that the hook did not runDebug Logs
Debug logs irrelevant, this is an issue with the script
npx mrm lint-staged
.expand to view
Environment
Interim fix:
Had to do a manual downgrade to husky v4:
Then it worked:
The text was updated successfully, but these errors were encountered: