mirror of https://github.com/openclaw/openclaw.git
chore: Clean up pre-commit hook.
This commit is contained in:
parent
c2178e2522
commit
018ebb35ba
|
|
@ -2,9 +2,8 @@
|
||||||
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
||||||
[ -z "$FILES" ] && exit 0
|
[ -z "$FILES" ] && exit 0
|
||||||
|
|
||||||
# Lint and format staged files
|
echo "$FILES" | xargs pnpm lint --fix
|
||||||
echo "$FILES" | xargs pnpm exec oxlint --fix
|
echo "$FILES" | xargs pnpm format --no-error-on-unmatched-pattern
|
||||||
echo "$FILES" | xargs pnpm exec oxfmt --write
|
|
||||||
echo "$FILES" | xargs git add
|
echo "$FILES" | xargs git add
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue