Centralize date/time formatting utilities (#11831)

This commit is contained in:
max
2026-02-08 04:53:31 -08:00
committed by GitHub
parent 74fbbda283
commit a1123dd9be
77 changed files with 1508 additions and 1075 deletions

View File

@@ -1,7 +1,10 @@
#!/bin/sh
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
[ -z "$FILES" ] && exit 0
echo "$FILES" | xargs pnpm format:fix --no-error-on-unmatched-pattern
# Lint and format staged files
echo "$FILES" | xargs pnpm exec oxlint --fix 2>/dev/null || true
echo "$FILES" | xargs pnpm exec oxfmt --write 2>/dev/null || true
echo "$FILES" | xargs git add
exit 0