Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-lone-blocks

- Disallow unnecessary nested blocks

This rule aims to eliminate unnecessary and potentially confusing blocks at the top level of a script or within other blocks.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.