mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 09:16:55 +00:00
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:
co-authored by
Claude Opus 5.5
parent
132e6633bf
commit
2a9c633374
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user