lib/rules/html-closing-bracket-spacing.js
function getLastLocationInTag(node) {
            const tagClose = node.tagClose
            const text = sourceCode.text.slice(node.range[0], tagClose.range[0])
            const index = text.search(/\S\s*$/gu) + node.range[0] + 1
            return {
                index,
                loc: sourceCode.getLocFromIndex(index),
            }
        }
function getLastLocationInTag(node) {
            const tagClose = node.tagClose
            const text = sourceCode.text.slice(node.range[0], tagClose.range[0])
            const index = text.search(/\S\s*$/gu) + node.range[0] + 1
            return {
                index,
                loc: sourceCode.getLocFromIndex(index),
            }
        }
function getLastLocationInTag ( node ) { const tagClose = node . tagClose const text = sourceCode . text . slice ( node . range [ 0 ] , tagClose . range [ 0 ] ) const index = text . search ( / \S\s*$ / gu ) + node . range [ 0 ] + 1 return { index , loc : sourceCode . getLocFromIndex ( index ) , } }
Get last location
@param {ASTNode} node The node
@returns {object} The last location
Get last location