Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -787,11 +787,18 @@
```

```javascript
// good
// bad
(function(global) {
// ...stuff...
})(this);
})(this);↵
```

```javascript
// good
(function(global) {
// ...stuff...
})(this);↵
```

- Use indentation when making long method chains.
Expand Down