42 lines
740 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
This rule raised an issue when a component is used in the ``++render()++`` method and not ``++import++``ed or defined.
=== Noncompliant code example
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,javascript]
2021-04-28 16:49:39 +02:00
----
<Rating value={this.props.measure.reliability_rating} />;
----
=== Compliant solution
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,javascript]
2021-04-28 16:49:39 +02:00
----
import Rating from './Rating'
[...]
<Rating value={this.props.measure.reliability_rating} />
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Add the missing import of "XXX".
=== Highlighting
Primary: first occurrence of the component usage
Secondary: all other places in the file where this component is used
endif::env-github,rspecator-view[]