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