You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

8 lines
315 B

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# Run linting on affected files
npm run affected:lint --base=main --head=HEAD --parallel=2 --quiet || exit 1
# Check formatting only on staged files
npx nx format:check --files=$(git diff --cached --name-only --diff-filter=ACM | grep '\.ts\|\.tsx\|\.js\|\.jsx') || exit 1