Skip to content

Commit 0d796e7

Browse files
committed
Update styleguide.md
1 parent a8a8709 commit 0d796e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/styleguide/styleguide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ Use [`tsfmt`](https://github.com/vvakame/typescript-formatter) to automatically
186186

187187
## Quotes
188188

189-
* Prefer sing quotes (`'`).
189+
* Prefer sing quotes (`'`) unless escaping.
190190

191-
> Reason: More JavaScript teams do this (e.g. [airbnb](https://github.com/airbnb/javascript), [standard](https://github.com/feross/standard), [npm](https://github.com/npm/npm), [node](https://github.com/nodejs/node), [google/angular](https://github.com/angular/angular/), [facebook/react](https://github.com/facebook/react))
191+
> Reason: More JavaScript teams do this (e.g. [airbnb](https://github.com/airbnb/javascript), [standard](https://github.com/feross/standard), [npm](https://github.com/npm/npm), [node](https://github.com/nodejs/node), [google/angular](https://github.com/angular/angular/), [facebook/react](https://github.com/facebook/react)). Its easier to type (no shift needed on most keyboards).
192192
193193
> Double quotes are not without merit: Allows easier copy paste of objects into JSON. Allows people to use other languages to work without changing their quote character. Allows you to use apostrophe s e.g. `He's not going.`. But I'd rather not deviate from where the JS Community is fairly decided.
194194

0 commit comments

Comments
 (0)