From 5ee008b3119bb687b9c3febb57df90d023a58395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michell=20Oca=C3=B1a?= Date: Tue, 28 May 2024 17:22:00 -0300 Subject: [PATCH] feat(lint/noLabelWithoutControl): change rule to be recommended --- crates/biome_configuration/src/linter/rules.rs | 2 ++ .../src/lint/nursery/no_label_without_control.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs index f273b4b4be66..2401c3183655 100644 --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -2949,6 +2949,7 @@ impl Nursery { "noFlatMapIdentity", "noImportantInKeyframe", "noInvalidPositionAtImportRule", + "noLabelWithoutControl", "noUnknownFunction", "noUnknownSelectorPseudoElement", "noUnknownUnit", @@ -2969,6 +2970,7 @@ impl Nursery { RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[10]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[11]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[12]), + RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[13]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[19]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[22]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[23]), diff --git a/crates/biome_js_analyze/src/lint/nursery/no_label_without_control.rs b/crates/biome_js_analyze/src/lint/nursery/no_label_without_control.rs index 0449722d68e0..79d161910dfb 100644 --- a/crates/biome_js_analyze/src/lint/nursery/no_label_without_control.rs +++ b/crates/biome_js_analyze/src/lint/nursery/no_label_without_control.rs @@ -87,7 +87,7 @@ declare_rule! { name: "noLabelWithoutControl", language: "jsx", sources: &[RuleSource::EslintJsxA11y("label-has-associated-control")], - recommended: false, + recommended: true, } }