mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
* Added more biome rules * Fixes * Added a few more rules * Added global phaser to biome * Fix tpyo * Updated biome to 2.1.4; improved docs on linting/localization; added vcs support Also added `.build` to gitignore cuz reasons * Fixed tpyo * dd * Applied linter fixes * Partially fixed some private property issues * Upgraded to Biome 2.2.0; added `operatorLinebreak` and a few new rules * Moved operator linebreaks before lines * Applied kev's suggestions * Update biome.jsonc Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * added like all the rules and then some * modify biome.jsonc * apply biome formatting * Reverted changes to balance folder * fixed stuff * Fixed biome stripping trailing globstars from everything * made `noInvertedElse` an error rule * Add & apply fixes for `useExplicitLengthCheck`, `useAtIndex` and `noNonNullAssertedOptionalChain` * Bumped biome to 2.2.3 * Fixed a few syntax errors * Removed trailing globstars since biome actually fixed their shit * Final clean up * foobarbaz * Fixed remaining issues * Fixed a few errors in SSUI * fixed rounding issue * Fixed test to not round funky * Fixed biome false positive for vitest hooks * Apply biome:all --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
24 lines
731 B
YAML
24 lines
731 B
YAML
pre-commit:
|
|
skip:
|
|
- merge
|
|
- rebase
|
|
commands:
|
|
biome-lint:
|
|
# Disable colors as certain IDEs 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
|
|
stage_fixed: true
|
|
ls-lint:
|
|
run: pnpm exec ls-lint
|
|
|
|
post-merge:
|
|
commands:
|
|
update-submodules:
|
|
run: pnpm update-locales
|
|
|
|
post-checkout:
|
|
commands:
|
|
update-submodules:
|
|
# cf https://git-scm.com/docs/githooks#_post_checkout:
|
|
# The 3rd argument is 1 for branch checkouts and 0 for file checkouts.
|
|
run: if test {3} -eq "1"; then pnpm update-locales; fi |