-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Flow types support in the order
rule
#732
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding yarn.lock
should be a separate change (one I disagree with, not the least of which is because this isn't a top-level app). Would you mind separating it into a separate PR?
I removed the |
Thanks a lot for your work on this @avaly! Since the issue was created, Flow v0.38 came out and allowed importing both types and values in a single import statement, which sounds like a way better syntax to me and would make this new type less useful. I described my concerns and propositions on the original issue, let me know what you think #645 (comment) |
@jfmengels I was aware of the new syntax in Flow 0.38, however I still feel this PR is relevant. Since the old syntax to import Flow types is still available, this rule should at least offer the opportunity to configure the code style some may want for their projects. Personally, I still prefer having all the Flow types imports separate from the normal imports. |
Any more thoughts on this? I would really like to have this available. |
The I don't want to tell you and other users how to import your types, but I really don't think this is the best way to handle this... I'm open to comments though. Please note that if you really feel like going this path anyway, you always have the option to fork this plugin and create a new package with the forked order rule. (cc @gajus who opened the original issue, if you feel like commenting) |
I'll close this PR and fork this rule into a separate package. |
Closes #645
PS: I also included ayarn.lock
file: https://yarnpkg.com/en/docs/version-controlPlease autosquash my fixup commits before merging. 😄