Ensure all identifiers follow the established naming conventions for the codebase and framework being used. This includes using native JavaScript private method syntax with `#` instead of underscore prefixes, following camelCase for JavaScript methods and variables, matching existing naming patterns for consistency, and avoiding deprecated naming...
Ensure all identifiers follow the established naming conventions for the codebase and framework being used. This includes using native JavaScript private method syntax with #
instead of underscore prefixes, following camelCase for JavaScript methods and variables, matching existing naming patterns for consistency, and avoiding deprecated naming conventions.
Key guidelines:
#methodName
) instead of underscore prefixes (_methodName
)copyToClipboard
not copy_to_clipboard
)post-
, translation components should use @key
to match other i18n code)find()
instead of findBy()
)clearSelection()
is clearer than inline -1
)Example of preferred private method syntax:
// โ Avoid underscore prefix
_buildGroupedEvents(detail) {
// implementation
}
// โ
Use native private syntax
#buildGroupedEvents(detail) {
// implementation
}
Consistent naming reduces cognitive load, improves code maintainability, and ensures compatibility with modern JavaScript standards and framework conventions.
Enter the URL of a public GitHub repository