[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>
This commit is contained in:
Bertie690 2025-11-01 18:51:30 -04:00 committed by GitHub
parent 58f42bc5c2
commit 4e8b8862a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

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