diff --git a/.husky/pre-commit b/.husky/pre-commit index aa120f589a..9c7d2a32ee 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -3,7 +3,7 @@ validate-branch-name echo "### lint staged files ###" lint-staged echo "### prettify staged files ###" -prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's|( |&)|\\ |g') --write --ignore-unknown +lint-staged --config .config/.lintstagedrc-prettier.js git update-index --again echo "### check for commit mail ###" node ./scripts/check-commit-mail.mjs