MagicMirror/.husky/pre-commit
Kristjan ESPERANTO 0b3a04c520
Switch to 'npx' for lint-staged in pre-commit hook (#3658)
This way we get rid of the script entry in the `package.json` and the
whole thing becomes a little less complex.
2024-12-22 07:26:01 +01:00

6 lines
69 B
Bash
Executable File

#!/bin/sh
if command -v npx &> /dev/null; then
npx lint-staged
fi