10 lines
602 B
Markdown
10 lines
602 B
Markdown
Style guide
|
|
===========
|
|
|
|
For the most part, we follow [MediaWiki coding conventions](https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript). 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.
|