jshint/jshint — Issue #474: allow curly when same line
Author: Phoscur
Created: 2012-03-07 03:13:32+00:00
State: open

I know the purpose of the curly attribute, but shouldn't it be clearer (and therefore allowed) to write a single command without newline behind the condition?

```javascript
while (day) shuffle(); // allowed
```

```javascript
while (day)
shuffle(); // not allowed
// because this line could be confused to be inside the loop
```

```javascript
while (day) {
shuffle(); // allowed
}
```

How can I create a relaxing option for this/modify curly?