Having the same module imported multiple times can affect code readability and maintainability. It makes hard to identify which modules are being
used.
import { B1 } from 'b';
import { B2 } from 'b'; // Noncompliant: there is already an import from module 'b'.
Instead, one should consolidate the imports from the same module into a single statement. By consolidating all imports from the same module in a
single import
statement, the code becomes more concise and easier to read, as there is only one import statement to keep track of.
Additionally, it can make it easier to identify which modules are used in the code.
import { B1, B2 } from 'b';