#!/bin/sh ROOT=$(git rev-parse --show-toplevel 2>/dev/null) [ -z "$ROOT" ] && exit 0 node "$ROOT/scripts/format-staged.js"