From 583b03ba5f198cf0f7bf34395bf7fd8097c7be5c Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Thu, 24 Mar 2016 09:01:40 -0600 Subject: [PATCH] Add git hook instructions to CONTRIBUTING.md. [ci skip] --- .github/CONTRIBUTING.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 92ab34de8..d0a1b37d5 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -61,7 +61,17 @@ established in the code. functions. Guidelines are enforced using [JSCS](https://www.npmjs.com/package/jscs): - ```bash $ npm run style ``` + +## Tips + +You can opt-in to a pre-push git hook by adding an `.opt-in` file to the root of +the project containing: +```txt +pre-push +``` + +With that, when you `git push`, the pre-push git hook will trigger and execute +`npm run validate`.