sourcecred/scripts/ensure-flow.sh

8 lines
204 B
Bash
Raw Normal View History

#!/bin/sh
set -eu
git grep -Fz --files-without-match -e '@flow' -e '@no-flow' -- '*.js' \
| grep -zv '^flow-typed/' \
| tr '\0' '\n' \
| tee /dev/stderr \
| diff -q /dev/null - >/dev/null