Merge "Make Nuke pass jshint"

This commit is contained in:
jenkins-bot 2014-04-22 19:27:18 +00:00 committed by Gerrit Code Review
commit 0842fdf990
3 changed files with 28 additions and 2 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@
!.gitignore
!.gitreview
!.jshintrc

25
.jshintrc Normal file
View file

@ -0,0 +1,25 @@
{
"predef": [
"jQuery"
],
/* Common */
// Enforcing
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"quotmark": "single",
"trailing": true,
"undef": true,
"unused": true,
// Environment
"browser": true
}

View file

@ -6,7 +6,7 @@
* @author Jeroen De Dauw <jeroendedauw at gmail dot com>
*/
( function ( $, mw ) {
( function ( $ ) {
'use strict';
$( document ).ready( function () {
@ -22,4 +22,4 @@
selectPages( false );
} );
} );
} ) ( window.jQuery, window.mediaWiki );
}( jQuery ) );