Skip to content

Fix eslint warnings and bump actions/checkout to v5#15

Merged
polius merged 1 commit into
mainfrom
fix/eslint-and-checkout-deprecation
May 9, 2026
Merged

Fix eslint warnings and bump actions/checkout to v5#15
polius merged 1 commit into
mainfrom
fix/eslint-and-checkout-deprecation

Conversation

@polius

@polius polius commented May 9, 2026

Copy link
Copy Markdown
Owner

Summary

Two issues surfaced by the latest CI runs, fixed together.

eslint errors in frontend/js/gamepad-nav.js

'focusLibraryLink' is defined but never used. Allowed unused vars must match /^_/u
'openPalette'      is defined but never used. Allowed unused vars must match /^_/u

Both are genuinely dead code:

  • openPalette is imported but never called in gamepad-nav.js (it's used in shell.js and command-palette.js, which import it directly).
  • focusLibraryLink is defined but referenced nowhere in the codebase.

Deleted both rather than renaming with _ prefix — dead code shouldn't be carried forward.

actions/checkout@v4 Node.js 20 deprecation warning

Node.js 20 actions are deprecated. The following actions are running on
Node.js 20 and may not work as expected: actions/checkout@v4.

Bumped actions/checkout@v4@v5 in all three workflows (backend, frontend, release). v5 runs on Node.js 24, clearing the warning ahead of the June 2026 cutoff.

Test plan

  • npm run lint passes locally with zero warnings
  • Frontend workflow runs cleanly on this PR (eslint + no Node 20 warning)
  • Backend workflow runs cleanly (no Node 20 warning)
  • Next release workflow run uses checkout@v5 (verified after merge)

🤖 Generated with Claude Code

- Drop the unused `openPalette` import and the dead `focusLibraryLink`
  function in frontend/js/gamepad-nav.js (eslint no-unused-vars).
- Bump actions/checkout from v4 to v5 in the backend, frontend, and
  release workflows. v4 runs on the deprecated Node.js 20 runtime; v5
  runs on Node.js 24, removing the runner deprecation warning.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@polius polius merged commit a10f48f into main May 9, 2026
2 checks passed
@polius polius deleted the fix/eslint-and-checkout-deprecation branch May 9, 2026 11:45
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