From c7830b54c617f1435a97575b9a7eaa104594c835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Fri, 26 Jun 2026 18:41:38 -0400 Subject: [PATCH] fix(lint): catch visible css before composition root (#1751) --- packages/core/src/lint/rules/core.test.ts | 186 ++++++++++++++++++++++ packages/core/src/lint/rules/core.ts | 33 +++- 2 files changed, 215 insertions(+), 4 deletions(-) diff --git a/packages/core/src/lint/rules/core.test.ts b/packages/core/src/lint/rules/core.test.ts index e3f99e76f..e30f8f74b 100644 --- a/packages/core/src/lint/rules/core.test.ts +++ b/packages/core/src/lint/rules/core.test.ts @@ -14,6 +14,54 @@ ${headContent} `; } +function compositionWithHeadBoundary(boundaryContent: string): string { + return ` + + + + +${boundaryContent} + +
+ + +`; +} + +function compositionWithBodyPrefix(prefixContent: string, rootContent = ""): string { + return ` + + + + + +${prefixContent} +
+${rootContent} +
+ + +`; +} + +function compositionWithImplicitBodyPrefix(prefixContent: string): string { + return ` + + + + +${prefixContent} +
+ +`; +} + function templateCompositionWithHead(headContent: string): string { return `