Skip to content

Commit 748e948

Browse files
authored
docs(lint/html): fix some html rule docs that mess up markdown rendering on the website (#8154)
1 parent 2dd38cf commit 748e948

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/biome_html_analyze/src/lint/nursery/no_vue_v_if_with_v_for.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ declare_lint_rule! {
1010
/// Disallow using `v-if` and `v-for` directives on the same element.
1111
///
1212
/// There are two common cases where this can be tempting:
13-
/// - To filter items in a list (e.g. v-for="user in users" v-if="user.isActive"). In these cases, replace users with a new computed property that returns your filtered list (e.g. activeUsers).
14-
/// - To avoid rendering a list if it should be hidden (e.g. v-for="user in users" v-if="shouldShowUsers"). In these cases, move the v-if to a container element (e.g. ul, ol).
13+
/// - To filter items in a list (e.g. `v-for="user in users" v-if="user.isActive"`). In these cases, replace users with a new computed property that returns your filtered list (e.g. activeUsers).
14+
/// - To avoid rendering a list if it should be hidden (e.g. `v-for="user in users" v-if="shouldShowUsers"`). In these cases, move the v-if to a container element.
1515
///
1616
/// ## Examples
1717
///

crates/biome_html_analyze/src/lint/nursery/use_vue_valid_v_on.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ declare_lint_rule! {
1111
/// Enforce valid `v-on` directives with proper arguments, modifiers, and handlers.
1212
///
1313
/// This rule reports v-on directives in the following cases:
14-
/// - The directive does not have an event name. E.g. <div v-on="foo"></div>
15-
/// - The directive has invalid modifiers. E.g. <div v-on:click.bogus="foo"></div>
16-
/// - The directive is missing a handler expression. E.g. <div v-on:click></div>
14+
/// - The directive does not have an event name. E.g. `<div v-on="foo"></div>`
15+
/// - The directive has invalid modifiers. E.g. `<div v-on:click.bogus="foo"></div>`
16+
/// - The directive is missing a handler expression. E.g. `<div v-on:click></div>`
1717
///
1818
/// ## Examples
1919
///

0 commit comments

Comments
 (0)