refactor(lint): name the pages opened beside index.html instead of commenting them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Vance Ingalls
2026-10-30 01:26:19 -07:00
co-authored by Claude Opus 5.5
parent 132e6633bf
commit 2a9c633374
+3 -2
View File
@@ -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);