mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 11:59:48 +00:00
Merge "Make Nuke pass jshint"
This commit is contained in:
commit
0842fdf990
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@
|
|||
|
||||
!.gitignore
|
||||
!.gitreview
|
||||
!.jshintrc
|
||||
|
|
25
.jshintrc
Normal file
25
.jshintrc
Normal 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
|
||||
}
|
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue