From 0d7d717253ba89b5b3f1cbbb089748b1f62aad04 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 16 Sep 2024 15:54:00 +0100 Subject: [PATCH] ESLint: Fix warnings Change-Id: I62b6f011a1068efd637a09388a8b12b92750068e --- modules/.eslintrc.json | 4 +--- .../ext.templateDataGenerator.editTemplatePage/Dialog.js | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/.eslintrc.json b/modules/.eslintrc.json index 1baa39b8..09b49994 100644 --- a/modules/.eslintrc.json +++ b/modules/.eslintrc.json @@ -10,8 +10,6 @@ ], "rules": { "max-len": "off", - "no-var": "off", - "no-mixed-spaces-and-tabs": "warn", - "implicit-arrow-linebreak": "warn" + "no-var": "off" } } diff --git a/modules/ext.templateDataGenerator.editTemplatePage/Dialog.js b/modules/ext.templateDataGenerator.editTemplatePage/Dialog.js index f2a2a333..aca542ca 100644 --- a/modules/ext.templateDataGenerator.editTemplatePage/Dialog.js +++ b/modules/ext.templateDataGenerator.editTemplatePage/Dialog.js @@ -1087,10 +1087,10 @@ Dialog.prototype.changeParamPropertyInput = function ( paramKey, propName, value break; case 'array': value = value || []; - propInput.setValue( value.map( ( v ) => + propInput.setValue( value.map( // TagMultiselectWidget accepts nothing but strings or objects with a .data property - v && v.data ? v : String( v ) - ) ); + ( v ) => v && v.data ? v : String( v ) + ) ); break; default: if ( typeof value === 'object' ) {