function isBareBlock(node) {
    var parentElement = node.parentElement;

    return parentElement &&
    parentElement.type === 'BlockStatement' ||
    parentElement.type === 'Program' ||
    parentElement.body && parentElement.body.type === 'BlockStatement' && Array.isArray(parentElement.body);
}
Disallows space before block statements (for loops, control structures).

Type: `Boolean`

Value: `true`

#### Example

```js
"disallowSpaceBeforeBlockStatements": true
```

##### Valid

```js
if (cond){
    foo();
} else{
   bar();
}

for (var e in elements){
    bar(e);
}

while (cond){
    foo();
}
```

##### Invalid

```js
if (cond) {
    foo();
} else {
   bar();
}

for (var e in elements) {
    bar(e);
}

while (cond) {
    foo();
}
```