Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 532 Bytes

CONTRIBUTING.md

File metadata and controls

19 lines (14 loc) · 532 Bytes

Contributing

  • Indent 2 spaces
  • Always use single quotes
  • Use ASI (no semicolons unless needed)
  • Maximum line length is 80 characters
  • Write tests
  • Code must pass npm test

Whitespace

  • Space after if while for etc. Key rule: if it's a function call then no space, if it is a keyword then use a space
  • Space after function
  • No space for function declarations or named functions: function foo() { }

Misc Styles

  • One var per line, and try to declare them at the top of the function
  • // for comments