Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

vars-on-top

- Require var declarations be placed at the top of their containing scope

This rule aims to keep all variable declarations in the leading series of statements. Allowing multiple declarations helps promote maintainability and is thus allowed.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.