Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-useless-rename

- Disallow renaming import, export, and destructured assignments to the same name

Fixable

This rule disallows the renaming of import, export, and destructured assignments to the same name.

What ESLint should do when it catches the rule break

Show a warning

Options

ignoreDestructuring

Ignores destructuring assignments.

ignoreImport

Ignores imports.

ignoreExport

Ignores exports.

Rule examples

You can check them out here.