From 2a9c63337471dad2b584badbcef8836d49fba567 Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Fri, 30 Oct 2026 01:26:19 -0700 Subject: [PATCH] refactor(lint): name the pages opened beside index.html instead of commenting them Co-Authored-By: Claude Opus 5.5 --- packages/lint/src/project.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/lint/src/project.ts b/packages/lint/src/project.ts index f62442a5b3..e39a06a9c4 100644 --- a/packages/lint/src/project.ts +++ b/packages/lint/src/project.ts @@ -575,6 +575,8 @@ function lintTextureMaskAssetNotFound( }); } +const PAGES_OPENED_BESIDE_INDEX = new Set(["caption-skin.html", "podcast-lanes.html"]); + function lintMultipleRootCompositions(projectDir: string): HyperframeLintFinding[] { const findings: HyperframeLintFinding[] = []; try { @@ -583,8 +585,7 @@ function lintMultipleRootCompositions(projectDir: string): HyperframeLintFinding ); const rootCompositions: string[] = []; for (const file of rootHtmlFiles) { - // Companion pages an app opens on their own beside index.html; never mounted, never rendered. - if (file === "caption-skin.html" || file === "podcast-lanes.html") continue; + if (PAGES_OPENED_BESIDE_INDEX.has(file)) continue; const content = readFileSync(join(projectDir, file), "utf-8"); if (/data-composition-id/i.test(content)) { rootCompositions.push(file);