diff --git a/core/.eslintrc.passing.json b/core/.eslintrc.passing.json index 449ec7030895d3d66f8400d15ad4e1637982ecc2..3e526794834e86f70c3f06a170c90aa2619bd5ae 100644 --- a/core/.eslintrc.passing.json +++ b/core/.eslintrc.passing.json @@ -11,7 +11,6 @@ "operator-linebreak": "off", "react/no-this-in-sfc": "off", "react/destructuring-assignment": "off", - "implicit-arrow-linebreak": "off", "import/named": "off" } } diff --git a/core/misc/form.es6.js b/core/misc/form.es6.js index 9afc7a11adc5441897078eaa822e0c290ade6933..ac5903957516d24129860e7c8e973ccd290590d1 100644 --- a/core/misc/form.es6.js +++ b/core/misc/form.es6.js @@ -154,10 +154,11 @@ * Array of IDs for form fields. */ function fieldsList(form) { - const $fieldList = $(form).find('[name]').map((index, element) => + const $fieldList = $(form).find('[name]').map( // We use id to avoid name duplicates on radio fields and filter out // elements with a name but no id. - element.getAttribute('id')); + (index, element) => element.getAttribute('id'), + ); // Return a true array. return $.makeArray($fieldList); } diff --git a/core/modules/block/js/block.es6.js b/core/modules/block/js/block.es6.js index 1bc5bd3a12fc71c28b9ed1ba1c20b05f7bf60e89..7bdbab0979a21062e54b3fbf6fe838d74c94fb95 100644 --- a/core/modules/block/js/block.es6.js +++ b/core/modules/block/js/block.es6.js @@ -136,13 +136,17 @@ // Calculate minimum weight. let weight = -Math.round(table.find('.draggable').length / 2); // Update the block weights. - table.find(`.region-${region}-message`).nextUntil('.region-title') - .find('select.block-weight').val(() => + table + .find(`.region-${region}-message`) + .nextUntil('.region-title') + .find('select.block-weight') + .val( // Increment the weight before assigning it to prevent using the // absolute minimum available weight. This way we always have an // unused upper and lower bound, which makes manually setting the // weights easier for users who prefer to do it that way. - ++weight); + () => ++weight, + ); } const table = $('#blocks');