eslint/eslint — pull request #1187 by jgoz (2014-08-25 22:44:03+00:00)
Title: One-line brace style

Closes #1089.

This adds a boolean parameter to `brace-style` for allowing single-line statements. For example, the following would be valid with one-line style enabled:

```js
function nop() { return; }

if (foo) { bar(); }

if (foo) { bar(); } else { baz(); }

try { somethingRisky(); } catch(e) { handleError(); }
```

It is disabled by default.

This also adds a new error message for when the closing brace is on the last line of the block, but not on the first line of the block:

```js
function bad() {
return false; }
```

This would output `Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.`

Tests & docs updated.