Skip to content

Commit 67e81a2

Browse files
authored
fix: Correct nursery links in rules (#2823)
1 parent 559a4f6 commit 67e81a2

File tree

57 files changed

+59
-59
lines changed

Some content is hidden

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

57 files changed

+59
-59
lines changed

codegen/src/lintdoc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ struct GenRule<'a> {
542542
fn generate_rule(
543543
payload: GenRule,
544544
path_prefix: &str,
545-
middle_path: &str,
545+
_middle_path: &str,
546546
rule_category: RuleCategory,
547547
) -> Result<()> {
548548
let mut content = Vec::new();
@@ -779,7 +779,7 @@ fn generate_rule_content(rule_content: RuleContent) -> Result<(Vec<u8>, String,
779779
writeln!(content, ":::caution")?;
780780
writeln!(
781781
content,
782-
"This rule is part of the [nursery](/{path_prefix}/{middle_path}/#nursery) group. This means that it is experimental and the behavior can change at any time."
782+
"This rule is part of the [nursery](/{path_prefix}/#nursery) group. This means that it is experimental and the behavior can change at any time."
783783
)?;
784784
writeln!(content, ":::")?;
785785
}

src/content/docs/linter/rules/no-await-in-loop.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1818
- Same as [`no-await-in-loop`](https://eslint.org/docs/latest/rules/no-await-in-loop)
1919

2020
:::caution
21-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
21+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2222
:::
2323
## Description
2424
Disallow `await` inside loops.

src/content/docs/linter/rules/no-bitwise-operators.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1818
- Same as [`no-bitwise`](https://eslint.org/docs/latest/rules/no-bitwise)
1919

2020
:::caution
21-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
21+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2222
:::
2323
## Description
2424
Disallow bitwise operators.

src/content/docs/linter/rules/no-constant-binary-expression.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1818
- Same as [`no-constant-binary-expression`](https://eslint.org/docs/latest/rules/no-constant-binary-expression)
1919

2020
:::caution
21-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
21+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2222
:::
2323
## Description
2424
Disallow expressions where the operation doesn't affect the value

src/content/docs/linter/rules/no-destructured-props.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
2020
- Inspired from [`solidjs/no-destructure`](https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-destructure.md)
2121

2222
:::caution
23-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
23+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2424
:::
2525
## Description
2626
Disallow destructuring props inside JSX components in Solid projects.

src/content/docs/linter/rules/no-excessive-lines-per-function.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1818
- Inspired from [`max-lines-per-function`](https://eslint.org/docs/latest/rules/max-lines-per-function)
1919

2020
:::caution
21-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
21+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2222
:::
2323
## Description
2424
Restrict the number of lines of code in a function.

src/content/docs/linter/rules/no-floating-promises.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
2020
- Same as [`@typescript-eslint/no-floating-promises`](https://typescript-eslint.io/rules/no-floating-promises)
2121

2222
:::caution
23-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
23+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2424
:::
2525
## Description
2626
Require Promise-like statements to be handled appropriately.

src/content/docs/linter/rules/no-global-dirname-filename.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1818
- Inspired from [`unicorn/prefer-module`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-module.md)
1919

2020
:::caution
21-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
21+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2222
:::
2323
## Description
2424
Disallow the use of `__dirname` and `__filename` in the global scope.

src/content/docs/linter/rules/no-implicit-coercion.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1818
- Same as [`no-implicit-coercion`](https://eslint.org/docs/latest/rules/no-implicit-coercion)
1919

2020
:::caution
21-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
21+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2222
:::
2323
## Description
2424
Disallow shorthand type conversions.

src/content/docs/linter/rules/no-import-cycles.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
2020
- Same as [`import/no-cycle`](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md)
2121

2222
:::caution
23-
This rule is part of the [nursery](/linter/rules/#nursery) group. This means that it is experimental and the behavior can change at any time.
23+
This rule is part of the [nursery](/linter/#nursery) group. This means that it is experimental and the behavior can change at any time.
2424
:::
2525
## Description
2626
Prevent import cycles.

0 commit comments

Comments
 (0)