From 852b3cca04a0dc3963eb3d921f9ea024af18b4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Fri, 26 Jun 2026 22:34:28 +0000 Subject: [PATCH] fix(lint): catch visible css before composition root --- 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 e3f99e76ff..e30f8f74b1 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 `