-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feature: pre-commit hooks #2249
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
Conversation
package.json
Outdated
@@ -39,6 +39,11 @@ | |||
"test": "npm run lint", | |||
"sitemap": "cd build && sitemap-static --prefix=https://webpack.js.org/ > sitemap.xml" | |||
}, | |||
"husky": { | |||
"hooks": { | |||
"pre-commit": "yarn test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@montogeek as per our discussion in another PR I guess we should revert to npm run
here as well before merging
This one is ready to go. |
What is the difference between this husky release candidate and the last stable one? |
In the RC version, you define hooks in the separate Here is the full changelog. |
Thanks! |
@byzyk If you have time, please add lint-staged too. We are losing time checking for files that shouldn't be linted, for example, bash scripts. |
@montogeek sure man! will pick it up at the earliest, shouldn't take much time |
As per discussion in #2226