Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-empty

- Disallow empty block statements

Recommended

This rule disallows empty block statements. This rule ignores block statements which contain a comment (for example, in an empty catch or finally block of a try statement to indicate that execution should continue regardless of errors).

What ESLint should do when it catches the rule break

Show a warning

Options

allowEmptyCatch

Allows empty catch clauses (that is, which do not contain a comment).

Rule examples

You can check them out here.