Skip to content

Commit 3d08140

Browse files
committed
fix: use code styling for deprecated rule replacement rule name
1 parent a0e9684 commit 3d08140

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rule-notices.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const RULE_NOTICES: {
115115
*/
116116
function ruleNamesToList(ruleNames: readonly string[]) {
117117
return ruleNames
118-
.map((ruleName) => `[${ruleName}](${ruleName}.md)`)
118+
.map((ruleName) => `[\`${ruleName}\`](${ruleName}.md)`)
119119
.join(', ');
120120
}
121121

test/lib/__snapshots__/generator-test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ exports[`generator #generate deprecated rules updates the documentation 1`] = `
203203
exports[`generator #generate deprecated rules updates the documentation 2`] = `
204204
"# Description (\`test/no-foo\`)
205205
206-
❌ This rule is deprecated. It was replaced by [no-bar](no-bar.md).
206+
❌ This rule is deprecated. It was replaced by [\`no-bar\`](no-bar.md).
207207
208208
<!-- end rule header -->
209209
"

0 commit comments

Comments
 (0)