All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.javascript.S6650.html Maven / Gradle / Ivy

There is a newer version: 10.20.0.29356
Show newest version

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy