lib/rules/no-irregular-whitespace.js
function removeWhitespaceError(node) {
            const locStart = node.loc.start;
            const locEnd = node.loc.end;

            errors = errors.filter(({ loc: errorLoc }) => {
                if (errorLoc.line >= locStart.line && errorLoc.line <= locEnd.line) {
                    if (errorLoc.column >= locStart.column && (errorLoc.column <= locEnd.column || errorLoc.line < locEnd.line)) {
                        return false;
                    }
                }
                return true;
            });
        }
function removeWhitespaceError(node) {
            const locStart = node.loc.start;
            const locEnd = node.loc.end;

            errors = errors.filter(({ loc: errorLoc }) => {
                if (errorLoc.line >= locStart.line && errorLoc.line <= locEnd.line) {
                    if (errorLoc.column >= locStart.column && (errorLoc.column <= locEnd.column || errorLoc.line < locEnd.line)) {
                        return false;
                    }
                }
                return true;
            });
        }
function removeWhitespaceError ( node ) { const locStart = node . loc . start ; const locEnd = node . loc . end ; errors = errors . filter ( ( { loc : errorLoc } ) => { if ( errorLoc . line >= locStart . line && errorLoc . line <= locEnd . line ) { if ( errorLoc . column >= locStart . column && ( errorLoc . column <= locEnd . column || errorLoc . line < locEnd . line ) ) { return false ; } } return true ; } ) ; }
Removes errors that occur inside a string node
@param {ASTNode} node to check for matching errors.
@returns {void}
@private
Removes errors that occur inside a string node