function renderDeprecatedRule(rule) {
    const link = `[${rule.id}](./docs/rules/${rule.name}.md)`
    const replacedBy = rule.replacedBy
        .map(nameRaw => {
            const name = nameRaw.replace(/^node[/]/u, "")
            return `[node/${name}](./docs/rules/${name}.md)`
        })
        .join(" and ")

    return `| ${link} | ${replacedBy || "(nothing)"} |`
}
Render a given rule as a table row.
@param {RuleInfo} rule The rule information.
@returns {string} The table row.