From fa44127efa15db35c01cb471fd94740a9261c516 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Thu, 1 Mar 2018 11:05:48 +0000 Subject: [PATCH] Fix eslint no-new in es5 files [MAILPOET-1146] --- .eslintrc.es5.json | 1 - assets/js/src/form_editor/form_editor.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.es5.json b/.eslintrc.es5.json index e74b87bd95..8dba8e958d 100644 --- a/.eslintrc.es5.json +++ b/.eslintrc.es5.json @@ -20,7 +20,6 @@ "no-restricted-syntax": 0, "no-useless-concat": 0, "no-nested-ternary": 0, - "no-new": 0, "no-redeclare": 0, "no-console": 0, "no-empty": 0, diff --git a/assets/js/src/form_editor/form_editor.js b/assets/js/src/form_editor/form_editor.js index 1970bd1ef3..f0daf962ce 100644 --- a/assets/js/src/form_editor/form_editor.js +++ b/assets/js/src/form_editor/form_editor.js @@ -796,7 +796,7 @@ WysijaForm.DraggableItem = window.Class.create({ window.Droppables.hideArea(); }, starteffect: function (element) { - new window.Effect.Opacity(element, { + new window.Effect.Opacity(element, {// eslint-disable-line no-new duration: 0.2, from: element.getOpacity(), to: 0.7