Upgrade eslint to v10 #571

Open
Vylpes wants to merge 1 commit from feature/557-upgrade-eslint into release/0.11.0
Owner
#557
Upgrade eslint to v10
All checks were successful
Test / build (push) Successful in 1m19s
afb26f771f
Vylpes 2026-10-30 14:54:20 +00:00
Vylpes added this to the 0.11.0 milestone 2026-10-30 14:54:30 +00:00
Vylpes removed this from the 0.11.0 milestone 2026-10-30 14:54:31 +00:00
Smithy-bot left a comment

Request changes — eslint v10 upgrade looks fine, but the autofix in GetCardsHelper.ts regresses legendarychanceup.

legendaryChance was made const and the branch for hasLegendaryEffect no longer applies legendaryChance = boostedChance (nor reduces legendary when other effects fire). Threshold math still uses the base legendary weight, so the legendary slice is never doubled even though bronze/silver/gold/manga are reduced. Please restore boosted legendary weight in the cumulative thresholds (same pattern as gold/manga boosts) without reintroducing lint violations.

**Request changes** — eslint v10 upgrade looks fine, but the autofix in `GetCardsHelper.ts` regresses **legendarychanceup**. `legendaryChance` was made `const` and the branch for `hasLegendaryEffect` no longer applies `legendaryChance = boostedChance` (nor reduces legendary when other effects fire). Threshold math still uses the base legendary weight, so the legendary slice is never doubled even though bronze/silver/gold/manga are reduced. Please restore boosted legendary weight in the cumulative thresholds (same pattern as gold/manga boosts) without reintroducing lint violations.
All checks were successful
Test / build (push) Successful in 1m19s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/557-upgrade-eslint:feature/557-upgrade-eslint
git switch feature/557-upgrade-eslint

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch release/0.11.0
git merge --no-ff feature/557-upgrade-eslint
git switch feature/557-upgrade-eslint
git rebase release/0.11.0
git switch release/0.11.0
git merge --ff-only feature/557-upgrade-eslint
git switch feature/557-upgrade-eslint
git rebase release/0.11.0
git switch release/0.11.0
git merge --no-ff feature/557-upgrade-eslint
git switch release/0.11.0
git merge --squash feature/557-upgrade-eslint
git switch release/0.11.0
git merge --ff-only feature/557-upgrade-eslint
git switch release/0.11.0
git merge feature/557-upgrade-eslint
git push origin release/0.11.0
Sign in to join this conversation.
No description provided.