mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-04 13:50:13 -05:00
feat: add pre-push hook
This commit is contained in:
parent
8978c76d5d
commit
de95acd352
2 changed files with 10 additions and 1 deletions
|
@ -1 +1,5 @@
|
||||||
npm run lint:affected
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -z "$HUSKY_HOOK" ] || [ "$HUSKY_HOOK" = "pre-commit" ]; then
|
||||||
|
npm run lint:affected
|
||||||
|
fi
|
||||||
|
|
5
.husky/pre-push
Normal file
5
.husky/pre-push
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$HUSKY_HOOK" = "pre-push" ]; then
|
||||||
|
npm run lint:affected
|
||||||
|
fi
|
Loading…
Reference in a new issue