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:
Miguel Ángel
2026-07-12 22:18:11 -04:00
committed by GitHub
parent 2e34a2d5a0
commit 38badff820
3 changed files with 54 additions and 8 deletions
+2 -1
View File
@@ -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);