From 4e8b8862a19fe80a3302e851f26fd063ed6e2241 Mon Sep 17 00:00:00 2001 From: Bertie690 <136088738+Bertie690@users.noreply.github.com> Date: Sat, 1 Nov 2025 18:51:30 -0400 Subject: [PATCH] [Dev] Add `biome:staged` command to lint currently staged files (#6737) * [Dev] Adde `biome:staged` command to lint currently staged files * Apply suggestion from @DayKev Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --------- Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- lefthook.yml | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index e5ed457a1b6..9b4be96056f 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -8,9 +8,9 @@ pre-commit: - rebase commands: biome-lint: - # Disable colors as certain IDEs don't support it in the output pane. + # Disable colors as certain IDEs (such as VSCode) don't support it in the output pane. # Summary mode looks decent in plain ASCII anyhow - run: pnpm exec biome check --write --colors=off --reporter=summary --staged --no-errors-on-unmatched --diagnostic-level=error + run: pnpm biome:staged --colors=off --reporter=summary stage_fixed: true ls-lint: run: pnpm exec ls-lint diff --git a/package.json b/package.json index e08e5a393a4..0730cc5197b 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "typecheck": "tsc --noEmit", "typecheck:scripts": "tsc -p scripts/jsconfig.json", "biome": "biome check --write --changed --no-errors-on-unmatched --diagnostic-level=error", + "biome:staged": "biome check --write --staged --no-errors-on-unmatched --diagnostic-level=error", "biome:all": "biome check --write --no-errors-on-unmatched --diagnostic-level=error", "biome-ci": "biome ci --diagnostic-level=error --reporter=github --no-errors-on-unmatched", "typedoc": "typedoc",