#!/bin/sh FILES=$(git diff --cached --name-only) [ -z "$FILES" ] && exit 0 # Run lint-staged on all staged echo "$FILES" | yarn lint-staged