34 lines
518 B
Plaintext
34 lines
518 B
Plaintext
== Why is this an issue?
|
|
|
|
Multiple imports from the same module should be merged together to improve readability.
|
|
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,javascript]
|
|
----
|
|
import { B1 } from 'b';
|
|
import { B2 } from 'b'; // Noncompliant
|
|
----
|
|
|
|
|
|
=== Compliant solution
|
|
|
|
[source,javascript]
|
|
----
|
|
import { B1, B2 } from 'b';
|
|
----
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::message.adoc[]
|
|
|
|
include::highlighting.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|