afch-zhwp/STYLEGUIDE.md

602 B

Style guide

For the most part, we follow MediaWiki coding conventions. Code should validate with JSHint (see configuration in .jshintrc) as well as JSCS (see configuration in .jscsrc). Travis CI is used to ensure consistent code style/quality; tests are run on all commits and pull requests.

Tips

  • TABS!
  • Comments are great; intelligent comments are even better.
  • Avoid assembling complex DOM structures in JavaScript. Instead, use a hogan template and AFCH.Views to access/populate/generate it.