lib/rules/no-restricted-globals.js
function reportReference(reference) {
            const name = reference.identifier.name,
                customMessage = restrictedGlobalMessages[name],
                message = customMessage
                    ? CUSTOM_MESSAGE_TEMPLATE
                    : DEFAULT_MESSAGE_TEMPLATE;

            context.report({
                node: reference.identifier,
                message,
                data: {
                    name,
                    customMessage
                }
            });
        }
function reportReference(reference) {
            const name = reference.identifier.name,
                customMessage = restrictedGlobalMessages[name],
                message = customMessage
                    ? CUSTOM_MESSAGE_TEMPLATE
                    : DEFAULT_MESSAGE_TEMPLATE;

            context.report({
                node: reference.identifier,
                message,
                data: {
                    name,
                    customMessage
                }
            });
        }
function reportReference ( reference ) { const name = reference . identifier . name , customMessage = restrictedGlobalMessages [ name ] , message = customMessage ? CUSTOM_MESSAGE_TEMPLATE : DEFAULT_MESSAGE_TEMPLATE ; context . report ( { node : reference . identifier , message , data : { name , customMessage } } ) ; }
Report a variable to be used as a restricted global.
@param {Reference} reference the variable reference
@returns {void}
@private
Report a variable to be used as a restricted global .