From 2af1c3c901a6117fe062e1fd88c0146cffa1481d Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 11 Jun 2024 19:00:44 +0100 Subject: build: Update eslint-config-wikimedia to 0.28.1 and autofix Also remove temporary explicit dependency on eslint-plugin-vue introduced in Ibd616750f046a. Change-Id: Ic6330fcb116e99d5827b4877e094e3073e2b7b72 --- resources/src/vue/i18n.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'resources/src/vue') diff --git a/resources/src/vue/i18n.js b/resources/src/vue/i18n.js index ca876170f1fe..2fa08b2ce915 100644 --- a/resources/src/vue/i18n.js +++ b/resources/src/vue/i18n.js @@ -108,12 +108,10 @@ module.exports = { // changes in binding.arg; we can't detect those, so there's a warning in the // documentation above explaining that using a dynamic argument is not supported. - const areArraysEqual = ( arr1, arr2 ) => - Array.isArray( arr1 ) && Array.isArray( arr2 ) && + const areArraysEqual = ( arr1, arr2 ) => Array.isArray( arr1 ) && Array.isArray( arr2 ) && arr1.length === arr2.length && arr1.every( ( val, index ) => arr2[ index ] === val ); - const areMessagesEqual = ( msg1, msg2 ) => - msg1 instanceof mw.Message && msg2 instanceof mw.Message && + const areMessagesEqual = ( msg1, msg2 ) => msg1 instanceof mw.Message && msg2 instanceof mw.Message && msg1.key === msg2.key && areArraysEqual( msg1.parameters, msg2.parameters ); -- cgit v1.2.3