Update husky and let lint-staged fix ESLint issues (#3370)

The new version of husky makes it possible to simplify the pre-commit
hook a little.

And since prettier no longer takes care of the JavaScript files in our
project, it can no longer come into conflict with ESLint while running
lint-staged. Therefore we can activate the correction of ESLint issues
here.
This commit is contained in:
Kristjan ESPERANTO
2024-01-28 23:15:18 +01:00
committed by GitHub
parent 3bf848075d
commit 431bf22adb
5 changed files with 14 additions and 14 deletions

View File

@@ -1,7 +1,5 @@
#!/bin/sh
[ -f "$(dirname "$0")/_/husky.sh" ] && . "$(dirname "$0")/_/husky.sh"
if command -v npm &> /dev/null; then
npm run lint:staged
fi