Repository navigation
Delete the names no module reads, and catch the next one - #749
Merged
Merged
Conversation
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]>
leaf-agent
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ESLint config enforces
no-undefon every module — a lost import has to fail the hook rather than bind towindow.*— butno-unused-varswas 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 destructuredregistry, and four locals, including afor (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-playgrounddrops 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.🤖 Generated with Claude Code