-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customize chakra-ui/props-order
#64
Comments
@hexiro Thank you for the suggestion! I totally agree with your opinion that My idea is like wrapping
|
cool, i'll take a look tomorrow and i'll let you know if i find anything. |
@hexiro Thanks! I think you can do this in two steps:
|
@yukukotani I tried to use the same options from |
@artnikbrothers You can't do it for now since it's still just an idea of the implementation strategy of options such as |
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 likecallbacksLast
andshorthandFirst
. for chakra-specific use case it would also be cool to have something likepseudoFirst
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 aFlex
element, align, justify, and direction props would show up before props that aren't specific toFlex
.Let me know what you think!
The text was updated successfully, but these errors were encountered: