Skip to content

Commit f234e02

Browse files
committed
Merge pull request airbnb#170 from chromakode/clarify-file-ending-newline
Clarify single newlines at the end of files.
2 parents b138d89 + 8189d6c commit f234e02

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@
777777
var x = y + 5;
778778
```
779779

780-
- Place an empty newline at the end of the file.
780+
- End files with a single newline character.
781781

782782
```javascript
783783
// bad
@@ -787,11 +787,18 @@
787787
```
788788

789789
```javascript
790-
// good
790+
// bad
791791
(function(global) {
792792
// ...stuff...
793-
})(this);
793+
})(this);↵
794+
795+
```
794796

797+
```javascript
798+
// good
799+
(function(global) {
800+
// ...stuff...
801+
})(this);↵
795802
```
796803

797804
- Use indentation when making long method chains.

0 commit comments

Comments
 (0)