0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-02 04:40:11 -05:00

feat: add pre-push hook

This commit is contained in:
Juanfran 2024-04-15 08:47:32 +02:00
parent 8978c76d5d
commit de95acd352
2 changed files with 10 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
#!/bin/bash
if [ "$HUSKY_HOOK" = "pre-push" ]; then
npm run lint:affected
fi