AFAIK we have now fully adopted the MediaWiki coding conventions for both PHP and JavaScript (and we have our own for Sass): http://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript