Skip to content

chore: remove unused imports and bindings flagged by lint - #71

Merged
christopherjnelson merged 1 commit into
mainfrom
chore/lint-unused-warnings
Sep 22, 2026
Merged

christopherjnelson merged 1 commit into
mainfrom
chore/lint-unused-warnings

Conversation

@christopherjnelson

Copy link
Copy Markdown
Member

Clears the ten remaining @typescript-eslint/no-unused-vars warnings. All of them are dead code left behind by the zero-swarm migration (#65–#70). Lint now reports no warnings.

Changes

No behavior changes.

  • packages/world-engine/src/index.ts: removed unused imports cellToLatLng, greatCircleDistance, and OBJECTIVE_PROMPT_VERSION.
  • apps/game-api/src/simulation-service.ts: removed unused imports gridDisk, h3CellSchema, and WORLD_SCENARIO_LIMITS.
  • packages/shared/src/index.test.ts:
    • Removed unused imports WORLD_SCENARIO_LIMITS and agentIdSchema.
    • Replaced the ({ currentCell: _currentCell, ...agent }) rest-omit binding. The snapshot fixture now builds its roster entries from the fields it needs (id, name, color). That was the only use of this idiom, so the repo-wide lint config is unchanged.
  • apps/game-api/src/swarm-directives.test.ts: removed an unused destructured worker.

Validation

Run locally by the repository owner and reported green:

pnpm validate     # 226 tests passed, lint reports no warnings
pnpm test:e2e     # 2 passed

🤖 Generated with Claude Code

Clear the ten remaining `@typescript-eslint/no-unused-vars` warnings, all left
behind as dead code by the zero-swarm migration: unused h3-js and shared
imports in the world engine and simulation service, unused test imports, an
unused destructured `worker`, and a rest-omit binding in the shared snapshot
fixture, which now builds roster entries from the fields it needs. No behavior
changes; lint now reports no warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@christopherjnelson
christopherjnelson marked this pull request as ready for review September 22, 2026 18:33
@christopherjnelson
christopherjnelson merged commit 2818b2f into main Sep 22, 2026
2 checks passed
@christopherjnelson
christopherjnelson deleted the chore/lint-unused-warnings branch September 22, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant