![JAR search and dependency download from the Maven repository](/logo.png)
org.sonar.l10n.javascript.rules.javascript.S6650.html Maven / Gradle / Ivy
Why is this an issue?
Renaming imports, exports, or destructuring assignments to the same name is redundant and can be safely removed. You may accidentally end up with
such code if you do a refactoring and change the local name in several places.
import { foo as foo } from "bar";
export { foo as foo };
let { foo: foo } = bar;
Fix your code to remove the unnecessary renaming.
import { foo } from "bar";
export { foo };
let { foo } = bar;
Resources
Documentation
- MDN web docs - import
- MDN web docs - export
- MDN web docs - Destructuring
assignment
© 2015 - 2025 Weber Informatics LLC | Privacy Policy