Skip to content

Commit

Permalink
fix: use-consistent-array-type lint rule url (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant authored Feb 29, 2024
1 parent 78dc430 commit 07bb274
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/biome_diagnostics_categories/src/categories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ define_categories! {
"lint/nursery/noUselessTernary": "https://biomejs.dev/linter/rules/no-useless-ternary",
"lint/nursery/useAwait": "https://biomejs.dev/linter/rules/use-await",
"lint/nursery/useBiomeSuppressionComment": "https://biomejs.dev/linter/rules/use-biome-suppression-comment",
"lint/nursery/useConsistentArrayType": "https://biomejs.dev/linter/rules/use-consistent-arrray-type",
"lint/nursery/useConsistentArrayType": "https://biomejs.dev/linter/rules/use-consistent-array-type",
"lint/nursery/useExportType": "https://biomejs.dev/linter/rules/use-export-type",
"lint/nursery/useFilenamingConvention": "https://biomejs.dev/linter/rules/use-filenaming-convention",
"lint/nursery/useForOf": "https://biomejs.dev/linter/rules/use-for-of",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Using the same style consistently across your codebase makes it easier for devel
let invalid: Array<foo>;
```

<pre class="language-text"><code class="language-text">nursery/useConsistentArrayType.js:1:14 <a href="https://biomejs.dev/linter/rules/use-consistent-arrray-type">lint/nursery/useConsistentArrayType</a> <span style="color: #000; background-color: #ddd;"> FIXABLE </span> ━━━━━━━━━━━━━━━
<pre class="language-text"><code class="language-text">nursery/useConsistentArrayType.js:1:14 <a href="https://biomejs.dev/linter/rules/use-consistent-array-type">lint/nursery/useConsistentArrayType</a> <span style="color: #000; background-color: #ddd;"> FIXABLE </span> ━━━━━━━━━━━━━━━

<strong><span style="color: Orange;"> </span></strong><strong><span style="color: Orange;">⚠</span></strong> <span style="color: Orange;">Use </span><span style="color: Orange;"><strong>shorthand T[] syntax</strong></span><span style="color: Orange;"> instead of </span><span style="color: Orange;"><strong>Array&lt;T&gt; syntax.</strong></span>

Expand All @@ -44,7 +44,7 @@ let invalid: Array<foo>;
let invalid: Promise<Array<string>>;
```

<pre class="language-text"><code class="language-text">nursery/useConsistentArrayType.js:1:22 <a href="https://biomejs.dev/linter/rules/use-consistent-arrray-type">lint/nursery/useConsistentArrayType</a> <span style="color: #000; background-color: #ddd;"> FIXABLE </span> ━━━━━━━━━━━━━━━
<pre class="language-text"><code class="language-text">nursery/useConsistentArrayType.js:1:22 <a href="https://biomejs.dev/linter/rules/use-consistent-array-type">lint/nursery/useConsistentArrayType</a> <span style="color: #000; background-color: #ddd;"> FIXABLE </span> ━━━━━━━━━━━━━━━

<strong><span style="color: Orange;"> </span></strong><strong><span style="color: Orange;">⚠</span></strong> <span style="color: Orange;">Use </span><span style="color: Orange;"><strong>shorthand T[] syntax</strong></span><span style="color: Orange;"> instead of </span><span style="color: Orange;"><strong>Array&lt;T&gt; syntax.</strong></span>

Expand All @@ -64,7 +64,7 @@ let invalid: Promise<Array<string>>;
let invalid3: Array<Foo<Bar>>;
```

<pre class="language-text"><code class="language-text">nursery/useConsistentArrayType.js:1:15 <a href="https://biomejs.dev/linter/rules/use-consistent-arrray-type">lint/nursery/useConsistentArrayType</a> <span style="color: #000; background-color: #ddd;"> FIXABLE </span> ━━━━━━━━━━━━━━━
<pre class="language-text"><code class="language-text">nursery/useConsistentArrayType.js:1:15 <a href="https://biomejs.dev/linter/rules/use-consistent-array-type">lint/nursery/useConsistentArrayType</a> <span style="color: #000; background-color: #ddd;"> FIXABLE </span> ━━━━━━━━━━━━━━━

<strong><span style="color: Orange;"> </span></strong><strong><span style="color: Orange;">⚠</span></strong> <span style="color: Orange;">Use </span><span style="color: Orange;"><strong>shorthand T[] syntax</strong></span><span style="color: Orange;"> instead of </span><span style="color: Orange;"><strong>Array&lt;T&gt; syntax.</strong></span>

Expand Down

0 comments on commit 07bb274

Please sign in to comment.