-
-
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
"sort-comp" Flow property definitions #235
Comments
It is not currently possible to sort classes properties according to their type (property, method, etc.). See #128 for this issue. But you can still configure the rule to force Let me know if you need more help. |
+1 |
I am facing the same issue and I am using babel-plugin-flow-react-proptypes that transform the static value to propTypes (so this make sense to be defined before constructor). I will take a look to custom order to "fix" this :) |
If people that use flow can use my branch and tell me if it works properly for them, that would be cool! It's based on 6.0.0-alpha.1
|
For the record, you can now use the
|
I was wondering if it was possible to have property definitions at the top when using this rule, cause if I write something like this:
it complains that constructor must be placed before state
The text was updated successfully, but these errors were encountered: