Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

curly

- Enforce consistent brace style for all control statements

Fixable

This rule is aimed at preventing bugs and increasing code clarity by ensuring that block statements are wrapped in curly braces. It will warn when it encounters blocks that omit curly braces.

What ESLint should do when it catches the rule break

Show a warning

Options

all

Rule examples

You can check them out here.