diff --git a/crates/biome_js_analyze/src/analyzers/nursery/no_useless_lone_block_statements.rs b/crates/biome_js_analyze/src/analyzers/nursery/no_useless_lone_block_statements.rs index 5199585c6ade..1d8a532e69b4 100644 --- a/crates/biome_js_analyze/src/analyzers/nursery/no_useless_lone_block_statements.rs +++ b/crates/biome_js_analyze/src/analyzers/nursery/no_useless_lone_block_statements.rs @@ -1,6 +1,8 @@ use crate::semantic_services::Semantic; use crate::JsRuleAction; -use biome_analyze::{context::RuleContext, declare_rule, ActionCategory, Rule, RuleDiagnostic}; +use biome_analyze::{ + context::RuleContext, declare_rule, ActionCategory, FixKind, Rule, RuleDiagnostic, +}; use biome_console::markup; use biome_diagnostics::Applicability; use biome_js_factory::make; @@ -47,6 +49,7 @@ declare_rule! { version: "next", name: "noUselessLoneBlockStatements", recommended: false, + fix_kind: FixKind::Unsafe, } } diff --git a/website/src/content/docs/linter/rules/index.mdx b/website/src/content/docs/linter/rules/index.mdx index 1af58882734a..7cccc92539de 100644 --- a/website/src/content/docs/linter/rules/index.mdx +++ b/website/src/content/docs/linter/rules/index.mdx @@ -219,7 +219,7 @@ Rules that belong to this group are not subject to semantic version⚠️ | | [noUnusedImports](/linter/rules/no-unused-imports) | Disallow unused imports. | 🔧 | | [noUselessElse](/linter/rules/no-useless-else) | Disallow else block when the if block breaks early. | ⚠️ | -| [noUselessLoneBlockStatements](/linter/rules/no-useless-lone-block-statements) | Disallow unnecessary nested block statements. | | +| [noUselessLoneBlockStatements](/linter/rules/no-useless-lone-block-statements) | Disallow unnecessary nested block statements. | ⚠️ | | [noVoid](/linter/rules/no-void) | Disallow the use of void operators, which is not a familiar operator. | | | [useAriaActivedescendantWithTabindex](/linter/rules/use-aria-activedescendant-with-tabindex) | Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant. | | | [useArrowFunction](/linter/rules/use-arrow-function) | Use arrow functions over function expressions. | 🔧 | diff --git a/xtask/coverage/Typescript b/xtask/coverage/Typescript index 61a96b1641ab..ece33b7b59fa 160000 --- a/xtask/coverage/Typescript +++ b/xtask/coverage/Typescript @@ -1 +1 @@ -Subproject commit 61a96b1641abe24c4adc3633eb936df89eb991f2 +Subproject commit ece33b7b59fa363efaeff12e14342b1289a00350 diff --git a/xtask/coverage/babel b/xtask/coverage/babel index 33a6be4e56b1..a4f44e154cd3 160000 --- a/xtask/coverage/babel +++ b/xtask/coverage/babel @@ -1 +1 @@ -Subproject commit 33a6be4e56b149647c15fd6c0157c1413456851d +Subproject commit a4f44e154cd3e4ba6a94c3284d91f36d8617e8a4 diff --git a/xtask/coverage/test262 b/xtask/coverage/test262 index 715dd1073bc0..2df6c7d29a18 160000 --- a/xtask/coverage/test262 +++ b/xtask/coverage/test262 @@ -1 +1 @@ -Subproject commit 715dd1073bc060f4ee221e2e74770f5728e7b8a0 +Subproject commit 2df6c7d29a18cd33120e791bdbe2043980a893fd