-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Rule proposal: Sort defaultProps static property #281
Labels
Comments
@b0gok A separate rule, that ideally shares code. A rule called "sort prop types" wouldn't make sense applied to default props - so maybe |
@ljharb ok, I'll try to implement it |
Fixed in #1483. |
This was referenced Jan 26, 2018
This was referenced Sep 22, 2018
This was referenced Sep 23, 2018
This was referenced Oct 25, 2018
This was referenced Nov 7, 2018
This was referenced Nov 23, 2018
1 task
1 task
This was referenced Dec 21, 2018
This was referenced Jan 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to force the same order for
propTypes
anddefaultProps
inside class. New rule for this seems like the copy ofjsx-sort-prop-types
, so probably it would be better to extendjsx-sort-prop-types
to apply todefaultProps
.The text was updated successfully, but these errors were encountered: