scripts/update-readme.js
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)"} |`
}
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)"} |`
}
function renderDeprecatedRule ( rule ) { const link = ` ${ rule . id } ${ rule . name } ` const replacedBy = rule . replacedBy . map ( name => ` ${ name } ${ name } ` ) . 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.
Render a given rule as a table row .