// Biome GritQL Plugin: Prevent from being nested inside // This catches the Ink error: " can't be nested inside component" language js; // Match Text elements that contain Box children (direct nesting) `$children` where { $children <: contains `$_`, register_diagnostic( span = $children, message = " can't be nested inside component. Use as a sibling or wrap inside instead." ) } // Also match self-closing Box inside Text `$children` where { $children <: contains ``, register_diagnostic( span = $children, message = " can't be nested inside component. Use as a sibling or wrap inside instead." ) }