From c70620e4a00f3b982e8f8fe5687678febe322fe4 Mon Sep 17 00:00:00 2001 From: alt-glitch Date: Tue, 9 Jun 2026 08:03:38 +0000 Subject: [PATCH] opentui(ts): enforce prettier in the gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a [1/4] format step to scripts/check.sh running `bunx prettier --check src` (matching how the script invokes the other tools), renumbering the existing steps to 2-4. Future formatting drift now fails the gate. The unused-imports/no-unused-vars warn → error promotion shipped in the no-non-null-assertion commit (where the eslint rule changes live). --- ui-tui-opentui-v2/scripts/check.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui-tui-opentui-v2/scripts/check.sh b/ui-tui-opentui-v2/scripts/check.sh index eecb391975b..069e2464865 100755 --- a/ui-tui-opentui-v2/scripts/check.sh +++ b/ui-tui-opentui-v2/scripts/check.sh @@ -9,13 +9,16 @@ set -euo pipefail cd "$(dirname "$0")/.." -echo "== [1/3] type-check ==" +echo "== [1/4] format (prettier --check) ==" +bunx prettier --check src + +echo "== [2/4] type-check ==" bun run type-check -echo "== [2/3] lint ==" +echo "== [3/4] lint ==" bun run lint -echo "== [3/3] bun test (incl. headless frame gate) ==" +echo "== [4/4] bun test (incl. headless frame gate) ==" bun test echo "== check OK =="