Only disable eslint indent check on one line

For whatever reason eslint was rejecting the (styleguide-correct)
indentation of the line beginning with "/** @type ...", and in my
naïvete I got a little more zealous than I intended in suppressing
the error.
This commit is contained in:
Christopher Allen
2021-07-13 12:08:35 +01:00
parent 603755f250
commit 948fade7c5

View File

@@ -191,8 +191,7 @@ Blockly.ContextMenuItems.addDeletableBlocks_ = function(block, deleteList) {
if (block.isDeletable()) {
Array.prototype.push.apply(deleteList, block.getDescendants(false));
} else {
/* eslint-disable indent */
var children =
var children = /* eslint-disable-next-line indent */
/** @type {!Array<!Blockly.BlockSvg>} */ (block.getChildren(false));
for (var i = 0; i < children.length; i++) {
Blockly.ContextMenuItems.addDeletableBlocks_(children[i], deleteList);