lib/rules/no-multi-spaces-in-script.js
function isIgnores(leftToken, leftIndex, rightToken) {
            const tokensAndComments = sourceCode.tokensAndComments
            const leftTemplateTag = getTemplateTagByToken(leftToken)
            const rightTemplateTag = getTemplateTagByToken(rightToken)
            if (!leftTemplateTag || !rightTemplateTag) {
                return true
            }

            // Ignore if token is the first token of the template tag script
            if (
                !sourceCode.text
                    .slice(
                        rightTemplateTag.expressionStart.range[1],
                        rightToken.range[0]
                    )
                    .trim()
            ) {
                return true
            }

            // Ignore comments that are the last token on their line if `ignoreEOLComments` is active.
            if (
                ignoreEOLComments &&
                isCommentToken(rightToken) &&
                (leftIndex === tokensAndComments.length - 2 ||
                    rightToken.loc.end.line <
                        tokensAndComments[leftIndex + 2].loc.start.line)
            ) {
                return true
            }

            // Ignore tokens that are in a node in the "exceptions" object
            if (hasExceptions) {
                const parentNode = sourceCode.getNodeByRangeIndex(
                    rightToken.range[0] - 1
                )

                if (parentNode && exceptions[parentNode.type]) {
                    return true
                }
            }
            return false
        }
function isIgnores(leftToken, leftIndex, rightToken) {
            const tokensAndComments = sourceCode.tokensAndComments
            const leftTemplateTag = getTemplateTagByToken(leftToken)
            const rightTemplateTag = getTemplateTagByToken(rightToken)
            if (!leftTemplateTag || !rightTemplateTag) {
                return true
            }

            // Ignore if token is the first token of the template tag script
            if (
                !sourceCode.text
                    .slice(
                        rightTemplateTag.expressionStart.range[1],
                        rightToken.range[0]
                    )
                    .trim()
            ) {
                return true
            }

            // Ignore comments that are the last token on their line if `ignoreEOLComments` is active.
            if (
                ignoreEOLComments &&
                isCommentToken(rightToken) &&
                (leftIndex === tokensAndComments.length - 2 ||
                    rightToken.loc.end.line <
                        tokensAndComments[leftIndex + 2].loc.start.line)
            ) {
                return true
            }

            // Ignore tokens that are in a node in the "exceptions" object
            if (hasExceptions) {
                const parentNode = sourceCode.getNodeByRangeIndex(
                    rightToken.range[0] - 1
                )

                if (parentNode && exceptions[parentNode.type]) {
                    return true
                }
            }
            return false
        }
function isIgnores ( leftToken , leftIndex , rightToken ) { const tokensAndComments = sourceCode . tokensAndComments const leftTemplateTag = getTemplateTagByToken ( leftToken ) const rightTemplateTag = getTemplateTagByToken ( rightToken ) if ( ! leftTemplateTag || ! rightTemplateTag ) { return true } // Ignore if token is the first token of the template tag script if ( ! sourceCode . text . slice ( rightTemplateTag . expressionStart . range [ 1 ] , rightToken . range [ 0 ] ) . trim ( ) ) { return true } // Ignore comments that are the last token on their line if `ignoreEOLComments` is active. if ( ignoreEOLComments && isCommentToken ( rightToken ) && ( leftIndex === tokensAndComments . length - 2 || rightToken . loc . end . line < tokensAndComments [ leftIndex + 2 ] . loc . start . line ) ) { return true } // Ignore tokens that are in a node in the "exceptions" object if ( hasExceptions ) { const parentNode = sourceCode . getNodeByRangeIndex ( rightToken . range [ 0 ] - 1 ) if ( parentNode && exceptions [ parentNode . type ] ) { return true } } return false }
Checks if the given token is ignore or not.

@param {Token} leftToken - The token to check.
@param {number} leftIndex - The index of left token.
@param {Token} rightToken - The token to check.
@returns {boolean} `true` if the token is ignore.
Checks if the given token is ignore or not .