Re:Airbnb JavaScript Style Guide
by clintonc on Friday July 03, 2015 @01:19AM
(#9823656)
My rationale for single quotes is also that JSON chose for you -- if you have JSON-formatted strings in your javascript and you use single quotes for your strings, you don't have to escape the double quotes.
[ Parent
| on HN ]
I'd find it very worrying that you have JSON-formatted strings in JS code. Why would you do that, when there's also a native representation?