mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-02 08:15:55 +00:00
7 lines
350 B
Bash
7 lines
350 B
Bash
#!/bin/sh
|
|
# Typecheck the project (incremental, a few seconds warm) and lint only the
|
|
# staged files. The full lint and typecheck run in CI for every push and PR.
|
|
npx tsc --noEmit || exit 1
|
|
files=$(git diff --cached --name-only --diff-filter=ACM -- '*.ts' '*.tsx' '*.js' '*.mjs')
|
|
[ -z "$files" ] || echo "$files" | xargs npx eslint --no-warn-ignored
|