Status: done (2026-11-02)
Priority: 2
Size: S
Arch: tooling
Phase: implement
Design ref: none (code structure)
Goal: VB-053 moved the page script verbatim into src/page/*.js; 133 of its lines are over 160 characters (up to 561), kept in tests/lint-baseline.json. The refactor rules wrap long lines in moved code; this does it as its own change, so the move itself could be checked byte for byte.
Acceptance criteria:
src/page/*.js is wrapped at statement or argument boundaries; nothing else is reformatted; strings and template literals keep their text.node tests/lint.js --update removes the page files’ long-line counts from the baseline (to 0).npm run verify passes (the Chromium check of VB-025 among them) and tests/golden.json is unchanged.index.html before and after with all whitespace outside string and template literals removed, and report the check in the PR.
Notes / questions:input.js, words.js and the chunk and talk code hold most of them; it may be done file by file.; , { && || => ??, and, inside ${…} code only, after ? : + (, never inside strings, template text, regexes or comments; continuation lines are indented 2 more. Two more breaks, in two lines of HTML in the debug panel’s template (drawer.js, buildDebug) are broken by hand inside a <button tag, between its name and attributes, so the DOM is unchanged (a break between </button><button would add a text node between the buttons).index.html with all whitespace removed is byte-identical before and after; the markup outside the scripts is identical; the scripts’ token streams (whitespace outside literals dropped) are identical but for those two template tokens, which differ only in whitespace inside a tag. npm run verify passes (60 scripts, the Chromium check among them); tests/golden.json unchanged.tests/lint-baseline.json: the page files’ long-line counts set to 0 by hand. node tests/lint.js --update would also write a baseline for each of the 40 files that have none; harmless (line limits bite only above 400) but noise, so left out.