mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-23 14:07:01 +00:00
build: Update eslint-config-wikimedia to 0.28.0
Change-Id: Ia565bd4d314b7b512a46c4bb2af74784d5c2edc1
This commit is contained in:
parent
780b3baf13
commit
cd421a4b1d
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 )
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -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
880
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue