lib/rules/no-deprecated-api.js
function reportItem(node, name, info) {
            context.report({
                node,
                loc: node.loc,
                message:
                    "{{name}} was deprecated since v{{version}}{{replace}}.",
                data: {
                    name,
                    version: info.since,
                    replace: toReplaceMessage(info.replacedBy),
                },
            })
        }
function reportItem(node, name, info) {
            context.report({
                node,
                loc: node.loc,
                message:
                    "{{name}} was deprecated since v{{version}}{{replace}}.",
                data: {
                    name,
                    version: info.since,
                    replace: toReplaceMessage(info.replacedBy),
                },
            })
        }
Reports a use of a deprecated API.

@param {ASTNode} node - A node to report.
@param {string} name - The name of a deprecated API.
@param {{since: number, replacedBy: string}} info - Information of the API.
@returns {void}