Parsoid/Style guide

This page documents differences from the MediaWiki JS coding conventions. Our conventions are enforced by jshint.

Indentation
The team would prefer to use spaces for indentation, but for now we are following the MediaWiki preference for tabs. Our tabs are four chars in width.

Strict mode
Enable strict mode near the top of all js files: