mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Add JSHint to CategoryTree
Bug: T65112 Change-Id: Ib10f4b043fab5b3163f6e343ae5ff926300b60c8
This commit is contained in:
parent
ae2d72081f
commit
696ca276f5
7
.jscsrc
Normal file
7
.jscsrc
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"preset": "wikimedia",
|
||||
|
||||
"disallowQuotedKeysInObjects": null,
|
||||
"requireSpacesInsideParentheses": null,
|
||||
"requireSpacesInsideArrayBrackets": null
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
# Someone should make this pass...
|
||||
modules/ext.categoryTree.js
|
26
.jshintrc
Normal file
26
.jshintrc
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
// Enforcing
|
||||
"bitwise": true,
|
||||
"eqeqeq": true,
|
||||
"es3": true,
|
||||
"freeze": true,
|
||||
"latedef": true,
|
||||
"noarg": true,
|
||||
"nonew": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"strict": false,
|
||||
|
||||
// Relaxing
|
||||
"laxbreak": true,
|
||||
"multistr": true,
|
||||
|
||||
// Environment
|
||||
"browser": true,
|
||||
|
||||
"globals": {
|
||||
"mediaWiki": true,
|
||||
"jQuery": false,
|
||||
"QUnit": false
|
||||
}
|
||||
}
|
|
@ -25,7 +25,7 @@
|
|||
* @context {Element} CategoryTreeToggle
|
||||
* @param e {jQuery.Event}
|
||||
*/
|
||||
function handleNode( e ) {
|
||||
function handleNode( /*e*/ ) {
|
||||
var $link = $( this );
|
||||
if ( $link.data( 'ct-state' ) === 'collapsed' ) {
|
||||
expandNode( $link );
|
||||
|
|
Loading…
Reference in a new issue