mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "eslint: Fix and enable the 'no-shadow' rule"
This commit is contained in:
commit
e5d29aa8c0
|
@ -6,7 +6,6 @@
|
|||
"wikimedia/mediawiki"
|
||||
],
|
||||
"rules": {
|
||||
"max-len": "off",
|
||||
"no-shadow": "warn"
|
||||
"max-len": "off"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue