Files
millionco__react-doctor/native/oxlint/rules/is-layout-transition-property.rs
2026-08-23 12:07:32 -07:00

33 lines
791 B
Rust

fn is_layout_transition_property(property_name: &str) -> bool {
const LAYOUT_TRANSITION_PROPERTIES: [&str; 27] = [
"width",
"height",
"min-width",
"max-width",
"min-height",
"max-height",
"top",
"right",
"bottom",
"left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"border-width",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"line-height",
"column-width",
];
LAYOUT_TRANSITION_PROPERTIES.contains(&property_name)
}