#!/bin/sh # script/frontend-fmt: format the frontend and every other file prettier # understands, repo-wide (writes). backend/ is in .prettierignore; Go # sources are formatted by backend/script/fmt. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" yarn prettier --write . } main "$@"