Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-implicit-globals

- Disallow variable and function declarations in the global scope

This rule disallows var and named function declarations at the top-level script scope. This does not apply to ES and CommonJS modules since they have a module scope.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.