Add git hook instructions to CONTRIBUTING.md. [ci skip]

This commit is contained in:
Kent C. Dodds
2016-03-24 09:01:40 -06:00
committed by John-David Dalton
parent 16e2c06ab4
commit 583b03ba5f

View File

@@ -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`.