mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Add git hook instructions to CONTRIBUTING.md. [ci skip]
This commit is contained in:
committed by
John-David Dalton
parent
16e2c06ab4
commit
583b03ba5f
12
.github/CONTRIBUTING.md
vendored
12
.github/CONTRIBUTING.md
vendored
@@ -61,7 +61,17 @@ established in the code.
|
|||||||
functions.
|
functions.
|
||||||
|
|
||||||
Guidelines are enforced using [JSCS](https://www.npmjs.com/package/jscs):
|
Guidelines are enforced using [JSCS](https://www.npmjs.com/package/jscs):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm run style
|
$ 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`.
|
||||||
|
|||||||
Reference in New Issue
Block a user