-
Notifications
You must be signed in to change notification settings - Fork 25
Style Guide
Mikey Saugstad edited this page Jul 23, 2019
·
13 revisions
- Keep lines <=120 characters long whenever it doesn't negatively impact readability.
- Comments should start with a space and a capital letter, and they should end with a period.
// This is the correct style. //this is incorrect
- Use spaces instead of tabs.
- End all files with a newline character. You can tell if you did not by looking at your PR on Github.
- If you are adding new JavaScript files, try to use ECMA6 instead of ECMA5. However, most of our code was written using ECMA5, and if you are editing a file that is entirely written using ECMA5, keep with that standard in your edits.
- If you are declaring multiple variables, add a
var
on each line:var do; var this;
var not, this;