feat(type-checking): Add type-checking pre-commit hooks (#32261)

This commit is contained in:
alveifbklsiu259
2025-02-20 07:12:17 +08:00
committed by GitHub
parent b269d920a9
commit e422e3c620
13 changed files with 472 additions and 8 deletions

View File

@@ -41,8 +41,8 @@ jobs:
- name: pre-commit
run: |
set +e # Don't exit immediately on failure
# Skip eslint as it requires `npm ci` and is executed in another job
export SKIP=eslint
# Skip eslint and type-checking-frontend as they requires `npm ci`. Both eslint and type-check are handled in other jobs.
export SKIP=eslint,type-checking-frontend
pre-commit run --all-files
if [ $? -ne 0 ] || ! git diff --quiet --exit-code; then
echo "❌ Pre-commit check failed."