#!/bin/sh # script/frontend-fmt: format the JavaScript, CSS, HTML and Markdown, # repo-wide (writes), the markdown in backend/ included. Those are the # languages REPO_POLICIES.md gives prettier; the YAML is left alone, as # backend/.golangci.yml must stay the org standard byte for byte. # Prettier does not read Go; backend/script/fmt formats the Go sources. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" yarn prettier --write '**/*.{js,css,html,md}' } main "$@"