mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user