This document outlines basic coding and repository standards for this project.
- Use lowerCamelCase when naming functions and variables
let myVariable
instead oflet my_variable
function myFunction
instead offunction MyFunctionName
- Use UpperCamelCase when naming classes and interfaces
class MyClass
instead ofclass myClass
- “blocked” statements have the bracket on the same line
if (condition) {
...
}
function myFunction() {
...
}
- Have spaces between operators and parameters
let myVariable = 123;
myVariable += 111;
for (let i = 0; i < 10; i++) {...}
myFunction(a, b, c);
- Place your comments on newlines, not inline
// comments go here
let myVariable = 123;
let myVariable = 312; // not here
- Develop features and user stories on their own branches
master
is a protected branch, all updates to that branch must be approved in a merge/pull request- Merge/pull requests can be reviewed by any other member
- The reviewee should make sure that their local branch is even with
master
before submitting their request - Any coding style changes that are required should be made by the reviewer