Render a given rule as a table row.
@param {RuleInfo} rule The rule information.
@returns {string} The table row.
function renderDeprecatedRule(rule) {
    const link = `[${rule.id}](./docs/rules/${rule.name}.md)`
    const replacedBy = rule.replacedBy
        .map(name => `[node/${name}](./docs/rules/${name}.md)`)
        .join(" and ")

    return `| ${link} | ${replacedBy || "(nothing)"} |`
}