Skip to content

Commit a8a8709

Browse files
committed
Update styleguide.md
1 parent 427f150 commit a8a8709

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/styleguide/styleguide.md

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

187187
## Quotes
188188

189-
* Prefer double quotes (`"`).
189+
* Prefer sing quotes (`'`).
190190

191-
> Reasons: 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.`.
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))
192192
193+
> 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.
193194
194195
* When you can't use double try back ticks (\`).
195196

0 commit comments

Comments
 (0)