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",