2020-06-30 12:48:39 +02:00
By convention, a file that exports only one class, function, or constant should be named for that class, function or constant. Anything else may confuse maintainers.
== Noncompliant Code Example
----
// file path: myclass.js -- Noncompliant
class MyClass {
// ...
}
export default MyClass;
----
== Compliant Solution
----
// file path: MyClass.js
class MyClass {
// ...
}
export default MyClass;
----
== Exceptions
2021-01-27 13:42:22 +01:00
Case, underscores ( ``++_++`` ) and dashes (``++-++``) are ignored from the name comparison.
2021-06-02 20:44:38 +02:00
2021-06-03 09:05:38 +02:00
ifdef::env-github,rspecator-view[]
2021-09-20 15:38:42 +02:00
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
2021-06-08 15:52:13 +02:00
'''
2021-06-02 20:44:38 +02:00
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
2021-06-03 09:05:38 +02:00
endif::env-github,rspecator-view[]