Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 542 Bytes

contributing.md

File metadata and controls

17 lines (17 loc) · 542 Bytes

#Coding Style

  • Always use semicolons
  • 2 spaces as tabs (no actual tab characters allowed)
  • Double quote strings only (ie. "string" not 'string')
  • Comments explain what & why you are doing something if its not obvious
  • If-statement logic must be wrapped in brackets
  //Ok
  if (1 === 1) {
    console.log("ok!");
  }
  //Not ok
  if (1 === 1)
    console.log("ok!");
  • Don't add console.log anywhere, unless you're adding debugging functionality that is disabled by default
  • Leading _ on function names for private functions