Skip to content

Delete the names no module reads, and catch the next one - #749

Merged
max-sixty merged 1 commit into
mainfrom
thread-resolve-shortcut
Sep 17, 2026
Merged

max-sixty merged 1 commit into
mainfrom
thread-resolve-shortcut

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The ESLint config enforces no-undef on every module — a lost import has to fail the hook rather than bind to window.* — but no-unused-vars was never configured, so a name nothing reads passed both hooks and stayed. Seventeen had collected: unused imports across the runtime and the boot entry, an uncalled composer helper, a destructured registry, and four locals, including a for (const [key, marker] of rows) whose second binding nothing used.

The rule now runs over every module. Arguments and caught errors are left alone, since a signature says what a callback is handed, and rest siblings are ignored, which is how lf-playground drops one key from an object.

This came out of an audit for unused keyboard bindings, which found none: the one candidate — three rows in the page-level response-options scope that can never fire, since the scope stands only while focus is in the comment field — turned out to be what teaches those keys in the command reference while the composer is closed. Removing them drops them from the reference, so they stay.

Everyday suite green (1130). The browser files over the touched modules — navigation, margin, conversations, anchors, reactions, drafts — are green at 554, apart from test_the_margin_groups_meanings_at_one_destination_without_moving_the_page, which fails on main from bb80748 (#746) and is unrelated to this change.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

eslint enforces no-undef but never configured no-unused-vars, so an
import or binding nothing reads passed both hooks and stayed. Seventeen
had collected: unused imports across the runtime and the boot entry, an
uncalled composer helper, a destructured registry, and four locals.

The rule now runs over every module, with arguments and caught errors
left alone — a signature says what a callback is handed — and rest
siblings ignored, which is how a widget drops one key from an object.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 858088f into main Sep 17, 2026
5 checks passed
@max-sixty
max-sixty deleted the thread-resolve-shortcut branch September 17, 2026 02:16
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.

2 participants