Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-redeclare

- Disallow variable redeclaration

Recommended

This rule is aimed at eliminating variables that have multiple declarations in the same scope.

What ESLint should do when it catches the rule break

Show a warning

Options

builtinGlobals

Checks for redeclaration of built-in globals in global scope.

Rule examples

You can check them out here.