build: Update eslint-config-wikimedia to 0.28.0

Change-Id: Ia565bd4d314b7b512a46c4bb2af74784d5c2edc1
This commit is contained in:
Ed Sanders 2024-06-06 16:32:22 +01:00
parent 780b3baf13
commit cd421a4b1d
5 changed files with 559 additions and 335 deletions

View file

@ -1,12 +1,11 @@
{
"root": true,
"extends": [
"wikimedia/client-es6",
"wikimedia/client",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"rules": {
"max-len": "off",
"prefer-arrow-callback": "error"
"max-len": "off"
}
}

View file

@ -28,9 +28,9 @@ ve.ce.MWSyntaxHighlightNode.static.name = 'mwSyntaxHighlight';
// Inherits from ve.ce.GeneratedContentNode
ve.ce.MWSyntaxHighlightNode.prototype.generateContents = function () {
return mw.loader.using( 'ext.pygments' ).then( () =>
return mw.loader.using( 'ext.pygments' ).then(
// Parent method
ve.ce.MWExtensionNode.prototype.generateContents.apply( this, arguments )
() => ve.ce.MWExtensionNode.prototype.generateContents.apply( this, arguments )
);
};

View file

@ -40,8 +40,7 @@ ve.ui.MWSyntaxHighlightWindow.prototype.initialize = function () {
$overlay: this.$overlay,
menu: {
filterFromInput: true,
items: ve.dm.MWSyntaxHighlightNode.static.getLanguages().map( ( lang ) =>
new OO.ui.MenuOptionWidget( { data: lang, label: lang || noneMsg } )
items: ve.dm.MWSyntaxHighlightNode.static.getLanguages().map( ( lang ) => new OO.ui.MenuOptionWidget( { data: lang, label: lang || noneMsg } )
)
},
validate: function ( input ) {

880
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@
"test": "grunt test"
},
"devDependencies": {
"eslint-config-wikimedia": "0.27.0",
"eslint-config-wikimedia": "0.28.0",
"grunt": "1.6.1",
"grunt-banana-checker": "0.13.0",
"grunt-contrib-watch": "1.1.0",