penpot/plugins/.husky/pre-commit

6 lines
108 B
Bash

#!/bin/bash
if [ -z "$HUSKY_HOOK" ] || [ "$HUSKY_HOOK" = "pre-commit" ]; then
npm run lint:affected
fi