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.
This commit is contained in:
Kristjan ESPERANTO
2024-12-22 07:26:01 +01:00
committed by GitHub
parent c485ff670d
commit 0b3a04c520
3 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
if command -v npm &> /dev/null; then
npm run lint:staged
if command -v npx &> /dev/null; then
npx lint-staged
fi