mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
fix(render): scope strict lint to composition (#2261)
* fix(render): scope strict lint to composition * fix(lint): validate explicit composition scope
This commit is contained in:
@@ -807,7 +807,8 @@ export default defineCommand({
|
||||
|
||||
// ── Pre-render lint ──────────────────────────────────────────────────
|
||||
{
|
||||
const lintResult = await lintProject(project.dir);
|
||||
const explicitEntry = args.composition && args.composition !== "." ? entryFile : undefined;
|
||||
const lintResult = await lintProject(project.dir, explicitEntry);
|
||||
if (!quiet && (lintResult.totalErrors > 0 || lintResult.totalWarnings > 0)) {
|
||||
console.log("");
|
||||
for (const line of formatLintFindings(lintResult, { errorsFirst: true })) console.log(line);
|
||||
|
||||
Reference in New Issue
Block a user