Skip to content

Commit

Permalink
docs: fix components files (#18519)
Browse files Browse the repository at this point in the history
* docs: update components files

* update

* update
  • Loading branch information
Tanujkanti4441 authored May 30, 2024
1 parent 89a4a0a commit 525fdff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions docs/src/library/code-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 18,7 @@ function() {
const another = [];
}
`` `
:::
::: incorrect
Expand All @@ -27,6 28,7 @@ function() {
const another = [];
}
`` `
:::
```

Expand Down
15 changes: 7 additions & 8 deletions docs/src/library/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 37,9 @@ A rule has a:
{% from 'components/rule.macro.html' import rule %}

{{ rule({
name: "getter-return",
name: "array-bracket-newline",
deprecated: true,
description: 'Enforce `return` statements in getters.',
description: 'Enforces line breaks after opening and before closing array brackets.',
categories: {
recommended: true,
fixable: true,
Expand All @@ -48,13 48,13 @@ A rule has a:
}) }}

{{ rule({
name: "getter-return",
name: "no-arrow-condition",
removed: true,
description: 'Enforce `return` statements in getters.',
replacedBy: "other-rule-here",
description: 'Disallows arrow functions where test conditions are expected.',
replacedBy: ["no-confusing-arrow", "no-constant-condition"],
categories: {
recommended: true,
fixable: true,
recommended: false,
fixable: false,
hasSuggestions: false
}
}) }}
Expand All @@ -68,5 68,4 @@ A rule has a:
fixable: false,
hasSuggestions: false
}

}) }}

0 comments on commit 525fdff

Please sign in to comment.