-
Notifications
You must be signed in to change notification settings - Fork 3
Coding Standards
sannd22 edited this page Oct 13, 2020
·
3 revisions
Coding Standards
The following is a list of the general coding standards for the CloudHaven project. Each developer is expected to follow these standards.
- TDD
- Always end with ;
- Inline curly brackets [if (x) { ]
- Soft Rule: ~80 line functions
- Descriptive variable names (except iterators)
- PascalCase for classes and files
- camelCase for functions/variables/fields
- CAPITALIZE for constant variables
- Tab is 4 spaces
- In styles tab in spaces
- No global variables
- Nest blocks should be indented properly
- Space after parentheses ()
- Avoid line going off the page
- All variables default private (not sure if relevant for js)
- Review all your code before making a PR
- You can not merge your own PR
Recommended Procedures Style checker suggestion: prettier Style linter suggestion: ESLint Style file format suggestion: react styled component
Wiki
Getting Started