mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-15 14:25:32 +01:00
[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:
parent
58f42bc5c2
commit
4e8b8862a1
@ -8,9 +8,9 @@ pre-commit:
|
|||||||
- rebase
|
- rebase
|
||||||
commands:
|
commands:
|
||||||
biome-lint:
|
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
|
# 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
|
stage_fixed: true
|
||||||
ls-lint:
|
ls-lint:
|
||||||
run: pnpm exec ls-lint
|
run: pnpm exec ls-lint
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"typecheck:scripts": "tsc -p scripts/jsconfig.json",
|
"typecheck:scripts": "tsc -p scripts/jsconfig.json",
|
||||||
"biome": "biome check --write --changed --no-errors-on-unmatched --diagnostic-level=error",
|
"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:all": "biome check --write --no-errors-on-unmatched --diagnostic-level=error",
|
||||||
"biome-ci": "biome ci --diagnostic-level=error --reporter=github --no-errors-on-unmatched",
|
"biome-ci": "biome ci --diagnostic-level=error --reporter=github --no-errors-on-unmatched",
|
||||||
"typedoc": "typedoc",
|
"typedoc": "typedoc",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user