no-color-literals
no-inline-styles
no-raw-text
<Text>
component or its allowed alternatives (TSpan
, StyledText
, Animated.Text
), maintaining semantic correctness and helping in uniform text styling and rendering across the app.options.skip
setting, enabling developers to extend or modify the list of elements that can safely contain text, thereby providing flexibility to accommodate project-specific components without compromising the rule’s integrity.no-single-element-style-arrays
no-unused-styles
unusedStyle
is identified as not used anywhere in the component, indicating that it can be safely removed without affecting the component’s appearance or functionality.
StyleSheet.create()
. This can have a slight performance benefit, especially in large projects with many components, as it reduces the memory footprint of the application.
sort-styles
ignoreClassNames
and ignoreStyleProperties
, providing flexibility. Teams can tailor the rule to their project’s requirements, either focusing on class names, style properties, or both, depending on their coding standards or preferences.
split-platform-components