mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-06 06:49:29 -05:00
Merge pull request #125 from vin/patch-1
Fix comma splice.
@@ -26,7 +26,7 @@ These guidelines are mainly **meant for contributors to the TypeScript project**
|
||||
4. Within a file, type definitions should come first.
|
||||
|
||||
## `null` and `undefined`
|
||||
1. Use **undefined**, do not use null.
|
||||
1. Use **undefined**. Do not use null.
|
||||
|
||||
## General Assumptions
|
||||
1. Consider objects like Nodes, Symbols, etc. as immutable outside the component that created them. Do not change them.
|
||||
@@ -84,4 +84,4 @@ For a variety of reasons, we avoid certain constructs, and use some of our own.
|
||||
3. `function f(x: number, y: string): void { }`
|
||||
6. Use a single declaration per variable statement <br />(i.e. use `var x = 1; var y = 2;` over `var x = 1, y = 2;`).
|
||||
7. `else` goes on a separate line from the closing curly brace.
|
||||
8. Use 4 spaces per indentation.
|
||||
8. Use 4 spaces per indentation.
|
||||
|
||||
Reference in New Issue
Block a user