Update js_style_guide.md

We need to explicitly rule out using double-quotes to escape single quotes.  Consider looking into our lint/prettier ruleset for enforcement.
This commit is contained in:
Clint Andrew Hall 2018-10-25 16:27:36 -05:00 committed by GitHub
parent 3b0cc4e886
commit 795ee7e5d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,7 @@ const foo = `You won't believe this.`;
// bad
const foo = 'You won\'t believe this.';
const foo = "You won't believe this.";
```
## Use object destructuring