-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: Add private accessors group to sort-member-config #41
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.
This seems good to me!
@grant-cleary : I vaguely recall us looking at this a bit early on with the editor work. I don't remember whether this was the exact same use case we had or not. Not sure if you remember more...? |
Yup, this was the same use case. |
@dbatiste @grant-cleary : Is there another issue that we need to deal with before I merge this in? Or this is good to go? |
I think this looks fine. I seem to remember Grant and I being somewhat dissatisfied with our ordering when we were looking at this previously, but couldn't remember exactly what it was, and whether Grant remembered. |
Yeah, I don't 100% remember why we decided not to fix this. We might not have cared enough? 😕 |
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.
🎉 Seems like a great idea!
🎉 This PR is included in version 0.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
While using
lit-config
extension in our project, I realized that having non-paired private accessors (i.e. private getter with no setter or vice versa) would intertwine the private accessors and private methods when sorting. So I added another group called "private-accessors" which sorts standalone getters first then sorts standalone setters second. See below for a better explanation.This was the behaviour before this change:
This is the behaviour after this change: