Repository navigation
Restore Biome checks for JavaScript sources - #567
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Oct 3, 2026 3:55a.m. | Review ↗ | |
| Secrets | Oct 3, 2026 3:55a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
|
Following up on the one caveat in the description: I've now exercised the two refactored areas in a real browser (headless Chromium, local build of this branch against Audio — with a genuine click to start the Space Invaders — the game boots and renders, and under real key presses No console errors or failed requests beyond the ones the pre-change build already produces. The five DeepSource comments above are all outdated — each was raised against an intermediate commit and answered by the next one; both analyzers are green on |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new suppression for buildGameConfig conceals a genuinely unused declaration despite the PR’s stated linting policy.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Restores Biome linting for JavaScript sources to address #406 while preserving classic-script integrations.
Changes:
- Re-enables JavaScript checks and updates hook documentation.
- Adds targeted lint suppressions and removes unused parameters.
- Refactors audio and Space Invaders logic to reduce complexity.
| File | Description |
|---|---|
biome.json |
Includes JavaScript sources in Biome checks. |
.pre-commit-config.yaml |
Updates the Biome hook description. |
src/assets/js/script.js |
Exposes audio globally and reduces complexity. |
src/assets/js/games/space-invaders.js |
Extracts movement and bullet helpers. |
src/assets/js/games/game-manager.js |
Annotates its cross-script global. |
src/assets/js/games/dev-duel.js |
Removes unused callback and function parameters. |
src/assets/js/games/config.js |
Annotates shared globals, including one unused helper. |
src/assets/js/games/code-breaker.js |
Removes unused parameters and applies optional chaining. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@deepsourcebot review |
jbampton
left a comment
There was a problem hiding this comment.
Thanks looks good 🏂
Sorry for the delay

Fixes #406.
Summary
src/assets/js/**/*.jsback to Biome's configured file setwithout changing their runtime bindings
cleanups without weakening Biome's recommended rules
threshold by consolidating layered audio sequences and extracting
Space Invaders movement and bullet access
playSoundat its definition through the repository's existingwindow.*conventionRestoring the JavaScript include exposes 32 warnings that Super-Linter 8.7.0
treats as errors. The targeted suppressions only cover declarations that Biome
cannot see being consumed outside their source file; unrelated unused
declarations remain protected by the rule.
Scope
Biome still reports 20 informational diagnostics: 16
useTemplatesuggestions, two
useParseIntRadixsuggestions, and two configurationmigration notices. They do not fail
--error-on-warningsand are left forseparate style/version work.
This change also leaves the pre-commit warning policy and unpinned local Biome
dependency unchanged. Aligning those with Super-Linter's pinned Biome 2.5.0
should be handled together as a follow-up.
Testing
uvx prek run --all-filesnpm run buildlint,format, andcheckover configured tracked files with--error-on-warnings --no-errors-on-unmatchedlintandformatover all 142 tracked files with the sameSuper-Linter flags
state/type cases and seven Space Invaders update scenarios
git diff --check origin/main...HEADA browser comparison was subsequently recorded on July 31 in
#567 (comment):
headless Chromium exercised audio creation after a genuine click and Space
Invaders keyboard input, comparing that branch build against
aa10215.That is historical validation; browser interaction has not been rerun for this
description-only update.