For the most part, we follow MediaWiki coding conventions. Code should validate with ESLint (see configuration in .eslintrc.json
). GitHub Actions is used to ensure consistent code style/quality; unit tests and linting are run on all commits and pull requests.
- 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.