build: Updating npm dependencies

* eslint-config-wikimedia: 0.27.0 → 0.28.2
  The following rules are failing and were disabled:
  * modules:
    * es-x/no-object-assign

* grunt-stylelint: 0.19.0 → 0.20.1
* stylelint-config-wikimedia: 0.16.1 → 0.17.2

Change-Id: I49a4e6d4e44639b380782fda105672ffa362d44e
This commit is contained in:
libraryupgrader 2024-06-19 04:21:38 +00:00
parent d1e1c01710
commit 903ef038c8
9 changed files with 1708 additions and 1953 deletions

View file

@ -10,6 +10,7 @@
},
"rules": {
"max-len": "off",
"no-jquery/no-global-selector": "off"
"no-jquery/no-global-selector": "off",
"es-x/no-object-assign": "warn"
}
}

View file

@ -18,7 +18,7 @@ function logEditEvent( data ) {
// these cases, don't log anything.
return;
}
mw.track( 'editAttemptStep', $.extend( {
mw.track( 'editAttemptStep', Object.assign( {
// eslint-disable-next-line camelcase
editor_interface: 'wikitext',
platform: 'desktop', // FIXME T249944

View file

@ -257,10 +257,10 @@ module.exports = {
},
open: function () {
// Obtain the server name without the protocol. wgServer may be protocol-relative
// eslint-disable-next-line security/detect-unsafe-regex
var serverName = mw.config.get( 'wgServer' ).replace( /^(https?:)?\/\//, '' );
// Cache the articlepath regex
// eslint-disable-next-line security/detect-non-literal-regexp
$( this ).data( 'articlePathRegex', new RegExp(
'^https?://' + mw.util.escapeRegExp( serverName + mw.config.get( 'wgArticlePath' ) )
.replace( /\\\$1/g, '(.*)' ) + '$'
@ -555,7 +555,7 @@ module.exports = {
// Pre-fill the text fields based on the current selection
if ( selection !== '' ) {
fileData = $.extend( fileData, parseFileSyntax( selection ) );
fileData = Object.assign( fileData, parseFileSyntax( selection ) );
}
// Initialize the form fields

View file

@ -137,7 +137,7 @@ var dialogsModule = {
$( '<div>' )
.text( body )
.appendTo( document.body )
.dialog( $.extend( {
.dialog( Object.assign( {
bgiframe: true,
modal: true
}, settings ) )

View file

@ -230,7 +230,7 @@ var toolbarModule = {
}
context.$textarea.textSelection(
'encapsulateSelection',
$.extend( {}, action.options, parts, { replace: replace } )
Object.assign( {}, action.options, parts, { replace: replace } )
);
break;
case 'callback':

View file

@ -14,7 +14,7 @@ function ManualWidget( realtimePreview, reloadHoverButton ) {
// Mixins.
OO.ui.mixin.AccessKeyedElement.call( this, {} );
OO.ui.mixin.ButtonElement.call( this, $.extend( {
OO.ui.mixin.ButtonElement.call( this, Object.assign( {
$button: this.$element
}, config ) );
OO.ui.mixin.IconElement.call( this, { icon: 'reload' } );

View file

@ -6,7 +6,7 @@
* @param {boolean} [config.isEW] Orientation of the drag bar, East-West (true) or North-South (false).
*/
function ResizingDragBar( config ) {
config = $.extend( {}, {
config = Object.assign( {}, {
isEW: true,
classes: [ 'ext-WikiEditor-ResizingDragBar' ]
}, config );

3636
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,13 +6,13 @@
"doc": "jsdoc -c jsdoc.json"
},
"devDependencies": {
"eslint-config-wikimedia": "0.27.0",
"eslint-config-wikimedia": "0.28.2",
"grunt": "1.6.1",
"grunt-banana-checker": "0.13.0",
"grunt-eslint": "24.3.0",
"grunt-stylelint": "0.19.0",
"grunt-stylelint": "0.20.1",
"jsdoc": "^4.0.3",
"jsdoc-wmf-theme": "1.0.1",
"stylelint-config-wikimedia": "0.16.1"
"stylelint-config-wikimedia": "0.17.2"
}
}