check / check (push) Waiting to run
main's tree, with next merged on 26 October, as one commit onto prod, on sneak's order. Model: opus-5-5 Co-authored-by: clawbot <clawbot@noreply.example.org>
17 lines
474 B
Bash
Executable File
17 lines
474 B
Bash
Executable File
#!/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"
|
|
"$ROOT/script/yarn" prettier --write '**/*.{js,css,html,md}'
|
|
}
|
|
|
|
main "$@"
|