lib/rules/no-restricted-amd-modules.js
function reportPath(node) {
        const moduleName = node.value.trim();
        const customMessage = restrictedPathMessages[moduleName];
        const message = customMessage
            ? CUSTOM_MESSAGE_TEMPLATE
            : DEFAULT_MESSAGE_TEMPLATE;

        context.report({
            node,
            message,
            data: {
                moduleName,
                customMessage
            }
        });
    }
function reportPath(node) {
        const moduleName = node.value.trim();
        const customMessage = restrictedPathMessages[moduleName];
        const message = customMessage
            ? CUSTOM_MESSAGE_TEMPLATE
            : DEFAULT_MESSAGE_TEMPLATE;

        context.report({
            node,
            message,
            data: {
                moduleName,
                customMessage
            }
        });
    }
function reportPath ( node ) { const moduleName = node . value . trim ( ) ; const customMessage = restrictedPathMessages [ moduleName ] ; const message = customMessage ? CUSTOM_MESSAGE_TEMPLATE : DEFAULT_MESSAGE_TEMPLATE ; context . report ( { node , message , data : { moduleName , customMessage } } ) ; }
Report a restricted path.
@param {node} node representing the restricted path reference
@returns {void}
@private
Report a restricted path .