-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
New: new rule no-constructor-return (fixes #12481) #12529
Conversation
Can anyone tell me why CI would fail? |
Looks like an issue with the new version of import-fresh which was released 2 hours ago. |
Build seems to work well now with the import-fresh patch release. |
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.
Left one documentation suggestion, and one suggestion about the implementation approach. Let me know if I've misunderstood anything. Thanks for putting this together!
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.
Looks good, thanks! Personally, I think this implementation is much more maintainable.
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.
One small typo, but otherwise LGTM!
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.
LGTM, thanks!
@aladdin-add Have your concerns been addressed? |
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.
LGTM, thanks!
I've added more cases to prevent crashing. |
What is the purpose of this pull request? (put an "X" next to item)
New rule
What changes did you make? (Give an overview)
Added new rule: no-constructor-return
Is there anything you'd like reviewers to focus on?
Are there anything should be polished at the documentation?
Are there more cases to be handled?