Remove eslint exception rule 'no-shadow' and rename variable

Also fix JSDoc warnings.

Change-Id: Idb2f15bd9ce134b17381bde1303a2e427c3056fb
这个提交包含在:
Fomafix 2021-08-21 15:21:15 +00:00 提交者 Krinkle
父节点 23d6c8f5bd
当前提交 d1af686a0d
共有 2 个文件被更改,包括 3 次插入7 次删除

查看文件

@ -8,8 +8,5 @@
"env": {
"browser": true,
"commonjs": true
},
"rules": {
"no-shadow": "warn"
}
}

查看文件

@ -19,13 +19,12 @@
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* @ingroup Extensions
* @author Daniel Kinzler, brightbyte.de
*/
( function () {
var loadChildren,
data = require( './data.json' );
config = require( './data.json' );
/**
* Expands a given node (loading it's children if not loaded)
@ -65,7 +64,7 @@
/**
* Handles clicks on the expand buttons, and calls the appropriate function
*
* @context {Element} CategoryTreeToggle
* @this {Element} CategoryTreeToggle
*/
function handleNode() {
var $link = $( this );
@ -144,7 +143,7 @@
ctTitle = $link.attr( 'data-ct-title' );
ctMode = $linkParentCTTag.data( 'ct-mode' );
ctMode = typeof ctMode === 'number' ? ctMode : undefined;
ctOptions = $linkParentCTTag.attr( 'data-ct-options' ) || data.defaultCtOptions;
ctOptions = $linkParentCTTag.attr( 'data-ct-options' ) || config.defaultCtOptions;
// Mode and options have defaults or fallbacks, title does not.
// Don't make a request if there is no title.