diff --git a/crates/biome_css_analyze/src/lint/nursery/no_empty_block.rs b/crates/biome_css_analyze/src/lint/nursery/no_empty_block.rs index facc86a287e6..a65eb18a74da 100644 --- a/crates/biome_css_analyze/src/lint/nursery/no_empty_block.rs +++ b/crates/biome_css_analyze/src/lint/nursery/no_empty_block.rs @@ -33,9 +33,7 @@ declare_rule! { /// ``` /// /// ```css - /// p { - /// /* foo */ - /// } + /// p { /* foo */ } /// ``` /// /// ```css diff --git a/crates/biome_js_analyze/src/lint/nursery/use_adjacent_overload_signatures.rs b/crates/biome_js_analyze/src/lint/nursery/use_adjacent_overload_signatures.rs index 61f4c498114d..1645c72a18a5 100644 --- a/crates/biome_js_analyze/src/lint/nursery/use_adjacent_overload_signatures.rs +++ b/crates/biome_js_analyze/src/lint/nursery/use_adjacent_overload_signatures.rs @@ -35,7 +35,7 @@ declare_rule! { /// bar_interface(): void; /// foo_interface(sn: string | number): void; /// } - /// `` + /// ``` /// /// ```js,expect_diagnostic /// class A { @@ -55,7 +55,7 @@ declare_rule! { /// export function foo_declare(sn: string | number): void; /// export function bar_declare(): void; /// } - /// ```` + /// ``` /// /// ```js /// type Foo = { diff --git a/crates/biome_js_analyze/src/lint/nursery/use_date_now.rs b/crates/biome_js_analyze/src/lint/nursery/use_date_now.rs index ee2ec4b35601..e56cfb70ffa2 100644 --- a/crates/biome_js_analyze/src/lint/nursery/use_date_now.rs +++ b/crates/biome_js_analyze/src/lint/nursery/use_date_now.rs @@ -27,15 +27,19 @@ declare_rule! { /// ```js,expect_diagnostic /// const foo = new Date().getTime(); /// ``` + /// /// ```js,expect_diagnostic /// const foo = new Date().valueOf(); /// ``` - /// ```js,expect_diagnostic + /// + /// ```js,expect_diagnostic,ignore /// const foo = +new Date; /// ``` + /// /// ```js,expect_diagnostic /// const foo = Number(new Date()); /// ``` + /// /// ```js,expect_diagnostic /// const foo = new Date() * 2; /// ``` diff --git a/crates/biome_js_analyze/src/lint/nursery/use_import_extensions.rs b/crates/biome_js_analyze/src/lint/nursery/use_import_extensions.rs index 365a7050eb49..4e7caa1db4ae 100644 --- a/crates/biome_js_analyze/src/lint/nursery/use_import_extensions.rs +++ b/crates/biome_js_analyze/src/lint/nursery/use_import_extensions.rs @@ -37,7 +37,7 @@ declare_rule! { /// ```js,expect_diagnostic /// import "../."; /// ``` - /// ```js,expect_diagnostic + /// ```js,expect_diagnostic,ignore /// import("./foo"); /// ``` /// ```js,expect_diagnostic diff --git a/crates/biome_js_analyze/src/lint/nursery/use_semantic_elements.rs b/crates/biome_js_analyze/src/lint/nursery/use_semantic_elements.rs index 7a0ef89a101e..76c482377df4 100644 --- a/crates/biome_js_analyze/src/lint/nursery/use_semantic_elements.rs +++ b/crates/biome_js_analyze/src/lint/nursery/use_semantic_elements.rs @@ -27,8 +27,8 @@ declare_rule! { /// ### Valid /// /// ```jsx - ///