-
Notifications
You must be signed in to change notification settings - Fork 4
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
Dangling commas #10
Comments
👍 |
I already told you my option -> TW! |
Very subjective. It looks unusual and there is a small learning curve (how many items has an array literal with dangling commas? 😉), but I think the benefits outweigh subjective feelings like "it's ugly". |
True. But code-style imposes "style" which is always subjective 😉
It does not change the |
I think this rule has some advantages which are, in my sense, rather objective (point 1. and 2.) and outweigh subjective "ugliness". |
Style is not always subjective, because there are also typographic rules. But style tends to be subjective, that is true.
You could think that the array has one more, |
You're right. Objective reasons are always more important than personal taste. With the |
I would like to change our linting rules to enforce dangling commas in multiline literals, likes this:
Why?
--fix
Why not optional?
Because we should stick to one style. We wouldn't really have benefit 1. and 2. if it is optional.
The rule would be configured like this:
Any objections? @peerigon/everyone
The text was updated successfully, but these errors were encountered: