Finish repo-wide strict equality sweep and enable eqeqeq #517
Labels
No labels
blocked
duplicate
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Depends on
#516 Validate card metadata types at parse time
External/card-drop
Reference
External/card-drop#517
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #487 (2026 Code Clean Up). Spun out of the review note on PR #515.
Why
PR #515 only converted the comparisons in the five files named by the #487 checklist (
InventoryHelper,GetUnclaimedCardsHelper,stats,GetCardsHelper,sacrifice) — 20==/!=sites.At the time of that PR there were still about 73 loose comparisons across 37 files.
eqeqeqwas not enabled in ESLint, because turning it on fails lint on every unswept file; it has to land with (or after) the final sweep.This is mechanical and is much faster with a local
yarn lint:fixthan through the bot's one-file-at-a-time API.Suggested approach
release/0.12.0.eqeqeqineslint.config.mjs(error).yarn lint:fix(or equivalent) and clear every remaining==/!=the rule reports.== nullonly where you truly want bothnullandundefined, or rewrite to explicit checks; do not leave bare==.yarn build,yarn lint,yarn test./drop,/inventory, and/statsagainst real cards before release.Acceptance criteria
==/!=insrc//tests/except any explicitly justified, lint-disabled sites.eqeqeqis enabled andyarn lintis clean.yarn buildandyarn testare clean.Related
===against real card JSON)Note on eslint config globs
Separately,
eslint.config.mjscurrently scopes arulesblock tofiles: ["./src", "./tests"], which matches no files, so several style rules are inert. That is a different fix; do not conflate it with enablingeqeqequnless you are already touching that config.Blocked until #516 is done