Skip to content

Commit 865dbfe

Browse files
docs: ensure "learn more" deprecation links point to useful resource (#19590)
* fix links * undo accidental formatting change * run build:site * Revert "run build:site" This reverts commit e6d0c70. * build rules index * hide absent deprecation link * change type * remove jsdoc mistake Co-authored-by: Francesco Trotta <github@fasttime.org> --------- Co-authored-by: Francesco Trotta <github@fasttime.org>
1 parent dcd95aa commit 865dbfe

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/.eleventy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,11 @@ module.exports = function (eleventyConfig) {
378378
<div class="alert__content">
379379
<span class="alert__type">Important</span>
380380
<div class="alert__text">${text}</div>
381-
<a href="${url}" class="alert__learn-more">Learn more</a>
381+
${
382+
url
383+
? `<a href="${url}" class="alert__learn-more">Learn more</a>`
384+
: ""
385+
}
382386
</div>
383387
</div>`,
384388
);

docs/src/_data/rules_meta.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,7 +3006,6 @@
30063006
"fixable": null,
30073007
"deprecated": {
30083008
"message": "The original assumption of the rule no longer holds true because of engine optimization.",
3009-
"url": "https://eslint.org/docs/latest/rules/no-return-await",
30103009
"deprecatedSince": "8.46.0",
30113010
"availableUntil": null,
30123011
"replacedBy": []
@@ -4001,7 +4000,6 @@
40014000
},
40024001
"deprecated": {
40034002
"message": "The original intention of this rule was misguided.",
4004-
"url": "https://eslint.org/docs/latest/rules/prefer-reflect",
40054003
"deprecatedSince": "3.9.0",
40064004
"availableUntil": null,
40074005
"replacedBy": []

lib/rules/no-return-await.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ module.exports = {
3030
deprecated: {
3131
message:
3232
"The original assumption of the rule no longer holds true because of engine optimization.",
33-
url: "https://eslint.org/docs/latest/rules/no-return-await",
3433
deprecatedSince: "8.46.0",
3534
availableUntil: null,
3635
replacedBy: [],

lib/rules/prefer-reflect.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module.exports = {
2222

2323
deprecated: {
2424
message: "The original intention of this rule was misguided.",
25-
url: "https://eslint.org/docs/latest/rules/prefer-reflect",
2625
deprecatedSince: "3.9.0",
2726
availableUntil: null,
2827
replacedBy: [],

0 commit comments

Comments
 (0)