Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

prefer-const

- Require const declarations for variables that are never reassigned after declared

Fixable

This rule is aimed at flagging variables that are declared using let keyword, but never reassigned after the initial assignment.

What ESLint should do when it catches the rule break

Show a warning

Options

ignoreReadBeforeAssign

Ignores variables that are read between the declaration and the first assignment.

destructuring

any

Rule examples

You can check them out here.