Naming Conventions
Class Names
Class names should follow PascalCase convention.
Exceptions
Two-Letter Acronyms
| Good |
Bad |
ArkTS |
ArkTs |
JSExecutor |
JsExecutor |
RNInstance |
RnInstance |
CAPI Suffix
| Good |
Bad |
RNInstanceCAPI |
RNInstanceCApi |
RNOH prefix
| Good |
Bad |
RNOHContext |
RnohContext |
Variable Names
Variable names should follow camelCase convention for example:
| Pascal case |
Good |
Bad |
ArkTS |
arkTS |
arkTs |
ArkUI |
arkUI |
arkUi |
RNInstanceId |
rnInstanceId |
rnInstanceID |
RNInstanceCAPI |
rnInstanceCAPI |
rnInstanceCapi |
NOTE: Id is an abbreviation not an acronym.