lib/rules/no-lone-blocks.js
function markLoneBlock() {
            if (loneBlocks.length === 0) {
                return;
            }

            const block = context.getAncestors().pop();

            if (loneBlocks[loneBlocks.length - 1] === block) {
                loneBlocks.pop();
            }
        }
function markLoneBlock() {
            if (loneBlocks.length === 0) {
                return;
            }

            const block = context.getAncestors().pop();

            if (loneBlocks[loneBlocks.length - 1] === block) {
                loneBlocks.pop();
            }
        }
function markLoneBlock ( ) { if ( loneBlocks . length === 0 ) { return ; } const block = context . getAncestors ( ) . pop ( ) ; if ( loneBlocks [ loneBlocks . length - 1 ] === block ) { loneBlocks . pop ( ) ; } }
Checks the enclosing block of the current node for block-level bindings,
and "marks it" as valid if any.
@returns {void}
Checks the enclosing block of the current node for block - level bindings and marks it as valid if any .