Files
millionco__react-doctor/native/oxlint/rules/has-active-route-property.rs
2026-08-23 17:37:44 -07:00

9 lines
320 B
Rust

fn has_active_route_property<'a>(
route_object: &'a oxc_ast::ast::ObjectExpression<'a>,
property_name: &str,
ctx: &crate::context::LintContext<'a>,
) -> bool {
get_static_route_property(route_object, property_name)
.is_some_and(|property| !is_definitely_falsy_expression(&property.value, ctx))
}