=_("The Issue Tracker is the place to add things that need to be improved or solved in a project. You can register or sign in to create issues for this project.")
-create_link=link_tos_('WikiEmpty|Create your first page'),create_path,class: 'btn gl-button btn-success qa-create-first-page-link',title: s_('WikiEmpty|Create your first page')
-create_link=link_tos_('WikiEmpty|Create your first page'),create_path,class: 'btn gl-button btn-confirm qa-create-first-page-link',title: s_('WikiEmpty|Create your first page')
-new_issue_link=link_tos_('WikiEmpty|Suggest wiki improvement'),new_project_issue_path(@project),class: 'btn gl-button btn-success',title: s_('WikiEmptyIssueMessage|Suggest wiki improvement')
-new_issue_link=link_tos_('WikiEmpty|Suggest wiki improvement'),new_project_issue_path(@project),class: 'btn gl-button btn-confirm',title: s_('WikiEmptyIssueMessage|Suggest wiki improvement')
@@ -294,3 +294,24 @@ Strive to write many small pure functions and minimize where mutations occur
varc=pureFunction(values.foo);
```
## Export constants as primitives
Prefer exporting constant primitives with a common namespace over exporting objects. This allows for better compile-time reference checks and helps to avoid accidential `undefined`s at runtime. In addition, it helps in reducing bundle sizes.
Only export the constants as a collection (array, or object) when there is a need to iterate over them, for instance, for a prop validator.
```javascript
// bad
exportconstVARIANT={
WARNING:'warning',
ERROR:'error',
};
// good
exportconstVARIANT_WARNING='warning';
exportconstVARIANT_ERROR='error';
// good, if the constants need to be iterated over