Merge pull request #170 from chromakode/clarify-file-ending-newline

Clarify single newlines at the end of files.
This commit is contained in:
Harrison Shoff
2014-05-13 19:42:26 -07:00

View File

@@ -777,7 +777,7 @@
var x = y + 5;
```
- Place an empty newline at the end of the file.
- End files with a single newline character.
```javascript
// bad
@@ -786,12 +786,19 @@
})(this);
```
```javascript
// bad
(function(global) {
// ...stuff...
})(this);↵
```
```javascript
// good
(function(global) {
// ...stuff...
})(this);
})(this);
```
- Use indentation when making long method chains.