Skip to content

Commit e26dc80

Browse files
authored
docs: update stale links to latest (#12313)
1 parent 44f9625 commit e26dc80

50 files changed

Lines changed: 53 additions & 53 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/troubleshooting/faqs/ESLint.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Two common solutions in TypeScript for declaring the existence of a global varia
113113
[Using global variables is generally discouraged](https://stackoverflow.com/questions/10525582/why-are-global-variables-considered-bad-practice).
114114
If possible, it's best to avoid declaring globals altogether.
115115

116-
If you absolutely must use one of the two strategies, then you can use an [ESLint configuration comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) to disable rules as needed.
116+
If you absolutely must use one of the two strategies, then you can use an [ESLint configuration comment](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) to disable rules as needed.
117117
For example:
118118

119119
```ts

packages/eslint-plugin/docs/rules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = {
5858

5959
## Frozen Rules
6060

61-
When rules are feature complete, they are marked as frozen (indicated with ❄️ in the documentation). This applies to standalone rules that are complete, as well as [extension rules](#extension-rules) whose underlying core ESLint rules are frozen. After that point, we expect users to use [disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) when they find an edge case that isn’t covered.
61+
When rules are feature complete, they are marked as frozen (indicated with ❄️ in the documentation). This applies to standalone rules that are complete, as well as [extension rules](#extension-rules) whose underlying core ESLint rules are frozen. After that point, we expect users to use [disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) when they find an edge case that isn’t covered.
6262

6363
When a rule is frozen, it means:
6464

packages/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem';
1111
1212
Function overload signatures represent multiple ways a function can be called, potentially with different return types.
1313
It's typical for an interface or type alias describing a function to place all overload signatures next to each other.
14-
If Signatures placed elsewhere in the type are easier to be missed by future developers reading the code.
14+
If signatures placed elsewhere in the type are easier to be missed by future developers reading the code.
1515

1616
## Examples
1717

@@ -98,7 +98,7 @@ export function foo(sn: string | number): void;
9898

9999
It can sometimes be useful to place overload signatures alongside other meaningful parts of a type.
100100
For example, if each of a function's overloads corresponds to a different property, you might wish to put each overloads next to its corresponding property.
101-
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
101+
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.
102102

103103
## Related To
104104

packages/eslint-plugin/docs/rules/await-thenable.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ async function shouldAwait() {
181181
If you want to allow code to `await` non-Promise values.
182182
For example, if your framework is in transition from one style of asynchronous code to another, it may be useful to include `await`s unnecessarily.
183183
This is generally not preferred but can sometimes be useful for visual consistency.
184-
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
184+
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.

packages/eslint-plugin/docs/rules/ban-ts-comment.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ if (false) {
158158
## When Not To Use It
159159

160160
If your project or its dependencies were not architected with strong type safety in mind, it can be difficult to always adhere to proper TypeScript semantics.
161-
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
161+
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.
162162

163163
## Further Reading
164164

packages/eslint-plugin/docs/rules/class-methods-use-this.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ class Derived implements Base {
132132
## When Not To Use It
133133

134134
If your project dynamically changes `this` scopes around in a way TypeScript has difficulties modeling, this rule may not be viable to use.
135-
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
135+
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.

packages/eslint-plugin/docs/rules/consistent-type-definitions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ However, keep in mind that inconsistent style can harm readability in a project.
125125
We recommend picking a single option for this rule that works best for your project.
126126

127127
You might occasionally need to a different definition type in specific cases, such as if your project is a dependency or dependent of another project that relies on a specific type definition style.
128-
Consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
128+
Consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.
129129

130130
## Further Reading
131131

packages/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ enum E {
6161

6262
It can sometimes be useful to include duplicate enum members for very specific use cases.
6363
For example, when renaming an enum member, it can sometimes be useful to keep the old name until a scheduled major breaking change.
64-
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
64+
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.
6565

6666
In general, if your project intentionally duplicates enum member values, you can avoid this rule.

packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ When set to true, duplicate checks on union type constituents are ignored.
8080
## When Not To Use It
8181

8282
It can sometimes be useful for the sake of documentation to include aliases for the same type.
83-
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
83+
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.
8484

8585
> In some of those cases, [branded types](https://basarat.gitbook.io/typescript/main-1/nominaltyping#using-interfaces) might be a type-safe way to represent the underlying data types.
8686

packages/eslint-plugin/docs/rules/no-dynamic-delete.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ delete container['Infinity'];
5858
## When Not To Use It
5959

6060
When you know your keys are safe to delete, this rule can be unnecessary.
61-
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
61+
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#use-configuration-comments) for those specific situations instead of completely disabling this rule.
6262

6363
Do not consider this rule as performance advice before profiling your code's bottlenecks.
6464
Even repeated minor performance slowdowns likely do not significantly affect your application's general perceived speed.

0 commit comments

Comments
 (0)