lib/rules/no-multi-spaces-in-html-tag.js
function processTokens(tokens) {
            for (const tokenInfo of genTargetTokens(tokens)) {
                const prevToken = tokenInfo.prevToken
                const token = tokenInfo.token

                const start = prevToken.range[1]
                const end = token.range[0]
                const spaces = end - start
                if (
                    spaces > 1 &&
                    token.loc.start.line === prevToken.loc.start.line &&
                    !sourceCode.text.slice(start, end).trim()
                ) {
                    context.report({
                        node: token,
                        loc: {
                            start: prevToken.loc.end,
                            end: token.loc.start,
                        },
                        messageId: "unexpected",
                        fix: defineFix(start, end),
                        data: {
                            displayValue: formatReportedHTMLToken(token),
                        },
                    })
                }
            }
        }
function processTokens(tokens) {
            for (const tokenInfo of genTargetTokens(tokens)) {
                const prevToken = tokenInfo.prevToken
                const token = tokenInfo.token

                const start = prevToken.range[1]
                const end = token.range[0]
                const spaces = end - start
                if (
                    spaces > 1 &&
                    token.loc.start.line === prevToken.loc.start.line &&
                    !sourceCode.text.slice(start, end).trim()
                ) {
                    context.report({
                        node: token,
                        loc: {
                            start: prevToken.loc.end,
                            end: token.loc.start,
                        },
                        messageId: "unexpected",
                        fix: defineFix(start, end),
                        data: {
                            displayValue: formatReportedHTMLToken(token),
                        },
                    })
                }
            }
        }
function processTokens ( tokens ) { for ( const tokenInfo of genTargetTokens ( tokens ) ) { const prevToken = tokenInfo . prevToken const token = tokenInfo . token const start = prevToken . range [ 1 ] const end = token . range [ 0 ] const spaces = end - start if ( spaces > 1 && token . loc . start . line === prevToken . loc . start . line && ! sourceCode . text . slice ( start , end ) . trim ( ) ) { context . report ( { node : token , loc : { start : prevToken . loc . end , end : token . loc . start , } , messageId : "unexpected" , fix : defineFix ( start , end ) , data : { displayValue : formatReportedHTMLToken ( token ) , } , } ) } } }
Process tokens.
@param {Array} tokens The tokens.
@returns {void}
Process tokens .