Hello! just have a few suggestions to leave here about how I believe this rule can be more like eslint-plugin-react's jsx-sort-props, only more specific to chakra.
I think it would be cool if like jsx-sort-props, one could sort with options like callbacksLast and shorthandFirst. for chakra-specific use case it would also be cool to have something like pseudoFirst so that one could choose if they want it at the beginning or the end.
Additionally, (this is a lot more complex) it would be cool if there was an option called something like uniqueFirst which moves unique props specific to that element to the front. For example, on a Flex element, align, justify, and direction props would show up before props that aren't specific to Flex.
Let me know what you think!
Hello! just have a few suggestions to leave here about how I believe this rule can be more like
eslint-plugin-react's jsx-sort-props, only more specific to chakra.I think it would be cool if like
jsx-sort-props, one could sort with options likecallbacksLastandshorthandFirst. for chakra-specific use case it would also be cool to have something likepseudoFirstso that one could choose if they want it at the beginning or the end.Additionally, (this is a lot more complex) it would be cool if there was an option called something like
uniqueFirstwhich moves unique props specific to that element to the front. For example, on aFlexelement, align, justify, and direction props would show up before props that aren't specific toFlex.Let me know what you think!