Skip to content

Commit d86b890

Browse files
Update rule suggestions link to new docs page (#509)
1 parent 41ec710 commit d86b890

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

docs/examples/eslint-plugin-test/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This plugin is for x purpose.
2525
🎨 Set in the `stylistic` configuration.\
2626
⌨️ Set in the `typescript` configuration.\
2727
🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
28-
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\
28+
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).\
2929
⚙️ Has configuration options.\
3030
💭 Requires type information.\
3131
🗂️ The type of rule.\

docs/examples/eslint-plugin-test/docs/rules/prefer-bar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
💼⚠️ This rule is enabled in the ✅ `recommended` config. This rule _warns_ in the 🎨 `stylistic` config.
44

5-
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
5+
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
66

77
💭 This rule requires type information.
88

lib/rule-doc-notices.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function configsToNoticeSentence(
8181

8282
// A few individual notices declared here just so they can be reused in multiple notices.
8383
const NOTICE_FIXABLE = `${EMOJI_FIXABLE} This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).`;
84-
const NOTICE_HAS_SUGGESTIONS = `${EMOJI_HAS_SUGGESTIONS} This rule is manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).`;
84+
const NOTICE_HAS_SUGGESTIONS = `${EMOJI_HAS_SUGGESTIONS} This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).`;
8585

8686
/**
8787
* An object containing the text for each notice type (as a string or function to generate the string).
@@ -239,7 +239,7 @@ const RULE_NOTICES: {
239239
[NOTICE_TYPE.FIXABLE]: NOTICE_FIXABLE,
240240
[NOTICE_TYPE.FIXABLE_AND_HAS_SUGGESTIONS]: ({ fixable, hasSuggestions }) => {
241241
if (fixable && hasSuggestions) {
242-
return `${EMOJI_FIXABLE}${EMOJI_HAS_SUGGESTIONS} This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).`;
242+
return `${EMOJI_FIXABLE}${EMOJI_HAS_SUGGESTIONS} This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).`;
243243
} else if (fixable) {
244244
return NOTICE_FIXABLE;
245245
} else if (hasSuggestions) {

lib/rule-list-legend.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const SEVERITY_TYPE_TO_WORD: {
2828

2929
// A few individual legends declared here just so they can be reused in multiple legends.
3030
const LEGEND_FIXABLE = `${EMOJI_FIXABLE} Automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).`;
31-
const LEGEND_HAS_SUGGESTIONS = `${EMOJI_HAS_SUGGESTIONS} Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).`;
31+
const LEGEND_HAS_SUGGESTIONS = `${EMOJI_HAS_SUGGESTIONS} Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).`;
3232

3333
/**
3434
* An object containing the legends for each column (as a string or function to generate the string).

test/lib/generate/__snapshots__/general-test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Description.
1111
✅ Set in the \`recommended\` configuration.\\
1212
🎨 Set in the \`style\` configuration.\\
1313
🔧 Automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\\
14-
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
14+
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
1515
1616
| Name | Description | 💼 | 🔧 | 💡 |
1717
| :----------------------------- | :--------------------- | :---- | :- | :- |
@@ -28,7 +28,7 @@ exports[`generate (general) basic updates the documentation 2`] = `
2828
2929
💼 This rule is enabled in the following configs: 🌐 \`all\`, ✅ \`recommended\`.
3030
31-
🔧💡 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
31+
🔧💡 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
3232
3333
<!-- end auto-generated rule header -->
3434
## Rule details

test/lib/generate/__snapshots__/option-rule-doc-notices-test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`generate (--rule-doc-notices) basic shows the right rule doc notices 1`
55
<!-- begin auto-generated rules list -->
66
77
🔧 Automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\\
8-
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\\
8+
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).\\
99
❌ Deprecated.
1010
1111
| Name | Description | 🔧 | 💡 | ❌ |
@@ -19,7 +19,7 @@ exports[`generate (--rule-doc-notices) basic shows the right rule doc notices 1`
1919
exports[`generate (--rule-doc-notices) basic shows the right rule doc notices 2`] = `
2020
"# Description for no-foo (\`test/no-foo\`)
2121
22-
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
22+
💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
2323
2424
🔧 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
2525

test/lib/generate/__snapshots__/option-rule-list-columns-test.ts.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`generate (--rule-list-columns) basic shows the right columns and legend
44
"## Rules
55
<!-- begin auto-generated rules list -->
66
7-
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\\
7+
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).\\
88
🔧 Automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).
99
1010
| 💡 | 🔧 | Name |
@@ -20,7 +20,7 @@ exports[`generate (--rule-list-columns) basic shows the right columns and legend
2020
2121
❌ This rule is deprecated.
2222
23-
🔧💡 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
23+
🔧💡 This rule is automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
2424
2525
<!-- end auto-generated rule header -->
2626
"
@@ -31,7 +31,7 @@ exports[`generate (--rule-list-columns) consolidated fixableAndHasSuggestions co
3131
<!-- begin auto-generated rules list -->
3232
3333
🔧 Automatically fixable by the [\`--fix\` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).\\
34-
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
34+
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
3535
3636
| Name | 🔧💡 |
3737
| :----------------------------- | :--- |

test/lib/generate/__snapshots__/option-rule-list-split-test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ exports[`generate (--rule-list-split) with boolean (camelCase) splits the list w
197197
"## Rules
198198
<!-- begin auto-generated rules list -->
199199
200-
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
200+
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
201201
202202
| Name | 💡 |
203203
| :----------------------------- | :- |

0 commit comments

Comments
 (0)