From 64ec6424db1b300e9bc4f9603cf01b790969b977 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 23 Oct 2020 11:12:47 -0400 Subject: [PATCH] Enable additional eslint rules, including no-useless-concat --- .eslintrc | 9 ++++++--- modules/operations/delete.js | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index 2bf462e10..c7a7f3374 100644 --- a/.eslintrc +++ b/.eslintrc @@ -64,13 +64,16 @@ "no-template-curly-in-string": "warn", "no-throw-literal": "error", "no-undef": "error", - "no-unneeded-ternary": "error", - "no-unused-expressions": "error", "no-unexpected-multiline": "error", - "no-unused-vars": "warn", + "no-unneeded-ternary": "error", + "no-unmodified-loop-condition": "error", "no-unreachable": "warn", "no-unreachable-loop": "warn", + "no-unused-expressions": "error", + "no-unused-vars": "warn", "no-useless-escape": "off", + "no-useless-call": "warn", + "no-useless-concat": "warn", "no-void": "error", "no-warning-comments": "warn", "no-with": "error", diff --git a/modules/operations/delete.js b/modules/operations/delete.js index b6c3c6e24..9a7bd8ce6 100644 --- a/modules/operations/delete.js +++ b/modules/operations/delete.js @@ -132,7 +132,7 @@ export function operationDelete(context, selectedIDs) { var disable = operation.disabled(); return disable ? t('operations.delete.' + disable + '.' + multi) : - t('operations.delete.description' + '.' + multi); + t('operations.delete.description.' + multi); };