Merge "eslint: Fix and enable the 'no-shadow' rule"

This commit is contained in:
jenkins-bot 2020-09-18 15:22:51 +00:00 committed by Gerrit Code Review
commit e5d29aa8c0
2 changed files with 4 additions and 5 deletions

View file

@ -6,7 +6,6 @@
"wikimedia/mediawiki"
],
"rules": {
"max-len": "off",
"no-shadow": "warn"
"max-len": "off"
}
}

View file

@ -6,7 +6,7 @@
*/
( function () {
var name;
var n;
function fixTarget( target ) {
var i, iLen, toolGroup, label, group,
@ -47,8 +47,8 @@
}
}
for ( name in ve.init.mw.targetFactory.registry ) {
fixTarget( ve.init.mw.targetFactory.lookup( name ) );
for ( n in ve.init.mw.targetFactory.registry ) {
fixTarget( ve.init.mw.targetFactory.lookup( n ) );
}
ve.init.mw.targetFactory.on( 'register', function ( name, target ) {