diff options
author | Ed Sanders <esanders@wikimedia.org> | 2024-06-11 19:00:44 +0100 |
---|---|---|
committer | Ed Sanders <esanders@wikimedia.org> | 2024-06-11 19:03:53 +0100 |
commit | 2af1c3c901a6117fe062e1fd88c0146cffa1481d (patch) | |
tree | 158a1c6f2aa62f7927f4f347eea23ec900685182 /resources/src/vue | |
parent | 2ec0f7d9ecd454abb619ea6d2e2db14574073598 (diff) | |
download | mediawikicore-2af1c3c901a6117fe062e1fd88c0146cffa1481d.tar.gz mediawikicore-2af1c3c901a6117fe062e1fd88c0146cffa1481d.zip |
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
Diffstat (limited to 'resources/src/vue')
-rw-r--r-- | resources/src/vue/i18n.js | 6 |
1 files changed, 2 insertions, 4 deletions
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 ); |