Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
tools: add quote-props eslint rule #14059
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
tniessen commented Jul 3, 2017
refack commented Jul 3, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Personally I'd rather have |
refack commented Jul 3, 2017
I think I'm -1 on this. |
tniessen commented Jul 3, 2017
I think this is a design decision, do we prefer consistent style or do we want to leave out all quotation marks that are not strictly required? |
lpinca commented Jul 4, 2017
-0, I prefer to not use quotes unless it is really needed. |
BridgeAR commented Jul 4, 2017
I don't mind using |
refack commented Jul 4, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I think we have precedence for churning in order to activate an eslint rule ( @vsemozhetbyt is the king of those 👑 #12563, #13835, etc. ) IMHO
/cc @nodejs/collaborators |
vsemozhetbyt commented Jul 4, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I am really not sure what to prefer. I like clear minimization ( constfoo='foo';constobj={ foo,bar: 'abc'}vs constobj={foo: foo,bar: 'abc'}as a mind tunes in for on style and then stumbles over a different one and that hampers reading. For me, the first example is OK, but I would not want to torture those who see this differently, i.e. who possibly prefer |
refack commented Jul 4, 2017
Since constfoo='foo';constobj={'foo': foo,bar: 'abc'} |
vsemozhetbyt commented Jul 4, 2017
Yes, I meant we already had a discussion on a similar style issue) |
BridgeAR commented Jul 10, 2017
Can we get some further opinions here? |
evanlucas commented Jul 10, 2017
IMO, we should only quote properties that must be quoted. Rule changes tend to make cherry-picking for releases more difficult... |
mcollina commented Jul 10, 2017
I think this just creates churn for no particular benefit: -1. It also complicates cherry-picking. |
cjihrig commented Jul 10, 2017
Also -1 for the reasons listed. |
gibfahn commented Jul 10, 2017
I'd prefer |
benjamingr left a comment
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'm also -1 for both the reasons stated above (churn) and stylistic preference. I'm making my -1 explicit - I'm fine with "as needed" as a config or not changing the config.
refack commented Jul 10, 2017
jasnell commented Jul 10, 2017
I'm -1 on this too. I much prefer omitting the prop name quotes when possible to do so. |
refack commented Jul 10, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
mcollina commented Jul 10, 2017
I'm -1 as as-needed and as well. |
refack commented Jul 10, 2017
Closing for lack of consensus |
This adds the
quote-propsrule and uses theconsistentstyle. I personally would like to change that toconsistent-as-neededbut this would create quite some churn and therefore using consistent right now is probably best.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
benchmark,test,tools