You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it'd be great to setup pre-commit/pre-push hooks automatically.
I think Husky is a great option. What I have in mind is:
pre-commit: run eslint --fix
pre-push: run full npm test
My only concern is husky (and other node based pre-commit hooks) will run on all files and not only modified files. This might not be an issue with new projects, but it's a required feature for legacy projects. We don't need to address this right away, but it'd be something to keep in mind for the future.
The text was updated successfully, but these errors were encountered:
I think it'd be great to setup pre-commit/pre-push hooks automatically.
I think Husky is a great option. What I have in mind is:
eslint --fix
npm test
My only concern is husky (and other node based pre-commit hooks) will run on all files and not only modified files. This might not be an issue with new projects, but it's a required feature for legacy projects. We don't need to address this right away, but it'd be something to keep in mind for the future.
The text was updated successfully, but these errors were encountered: