diff --git a/.eslintrc.es5.json b/.eslintrc.es5.json index 88829bfaba..51e2286deb 100644 --- a/.eslintrc.es5.json +++ b/.eslintrc.es5.json @@ -25,7 +25,6 @@ "new-cap": 0, "no-continue": 0, "no-new": 0, - "space-unary-ops": 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 ff5f535314..17930389bf 100644 --- a/assets/js/src/form_editor/form_editor.js +++ b/assets/js/src/form_editor/form_editor.js @@ -333,7 +333,7 @@ var WysijaForm = { }; // body WysijaForm.getBlocks().each(function (b) { - var block_data = (typeof(b.block['save']) === 'function') ? b.block.save() : null; + var block_data = (typeof (b.block['save']) === 'function') ? b.block.save() : null; if(block_data !== null) { // set block position @@ -891,7 +891,7 @@ WysijaForm.Block = window.Class.create({ WysijaForm.toggleWidgets(); // optional callback execution after completely removing block - if(callback !== undefined && typeof(callback) === 'function') { + if(callback !== undefined && typeof (callback) === 'function') { callback(); } diff --git a/assets/js/src/subscribers/importExport/import.js b/assets/js/src/subscribers/importExport/import.js index 3467f60ca0..2cd80213a8 100644 --- a/assets/js/src/subscribers/importExport/import.js +++ b/assets/js/src/subscribers/importExport/import.js @@ -895,7 +895,7 @@ define( for (var format in allowedDateFormats) { var testedFormat = allowedDateFormats[format]; if (Moment(firstRowData, testedFormat, true).isValid()) { - var validationRule = (typeof(testedFormat) === 'function') ? + var validationRule = (typeof (testedFormat) === 'function') ? 'datetime' : testedFormat; // set validation on the column element