Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

brace-style

- Enforce consistent brace style for blocks

Fixable

This rule enforces consistent brace style for blocks.

What ESLint should do when it catches the rule break

Show a warning

Options

1tbs

allowSingleLine

Allows the opening and closing braces for a block to be on the same line.

Rule examples

You can check them out here.