-
Notifications
You must be signed in to change notification settings - Fork 56
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
Change trailing commas config #35
Change trailing commas config #35
Conversation
Why: So that consistency is enforced across the code base.
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.
I suspect we'll have some friction over the default, but I definitely agree that removing dynamic is the right thing to do.
Personally, I am happy with either option.
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.
I think I will personally tend to configure no trailing comma but I'm happy to go with the majority view. It may be worth noting that the defaults on both prettier and rubocop (I think) is no multiline trailing comma - configuration allowed, so we should expect disapproval. |
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.
@gingermusketeer I've noticed one small thing - last_has_comma can now disappear altogether
Thanks @gingermusketeer 👍 |
This changes the default for trailing commas to be
:always
. The reason I opted for this is so that consistency is enforced.This also removes the
:dynamic
option for the same reason as above.While I think that
:always
is the better default, due to minimizing diff noise, I do think that we need to a configuration option for this. Thoughts?