Uh oh!
There was an error while loading. Please reload this page.
tools: add quote-props eslint rule - #14059
Conversation
tniessen
commented
Jul 3, 2017
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 |
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 |
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.
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. |
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