From cc65fe857929896b88a40cfee759a1f80d3ab876 Mon Sep 17 00:00:00 2001 From: ty <62130798+togami2864@users.noreply.github.com> Date: Sat, 22 Jun 2024 02:47:28 +0900 Subject: [PATCH] chore(linter): add a rule source of `noUnknownProperty` (#3252) --- crates/biome_configuration/src/linter/rules.rs | 2 ++ .../src/lint/nursery/no_unknown_property.rs | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/biome_configuration/src/linter/rules.rs b/crates/biome_configuration/src/linter/rules.rs index 44b3a75c895c..a8f9afa3af6a 100644 --- a/crates/biome_configuration/src/linter/rules.rs +++ b/crates/biome_configuration/src/linter/rules.rs @@ -3042,6 +3042,7 @@ impl Nursery { "noLabelWithoutControl", "noShorthandPropertyOverrides", "noUnknownFunction", + "noUnknownProperty", "noUnknownPseudoClassSelector", "noUnknownSelectorPseudoElement", "noUnknownUnit", @@ -3064,6 +3065,7 @@ impl Nursery { RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[12]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[16]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[19]), + RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[21]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[22]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[23]), RuleFilter::Rule(Self::GROUP_NAME, Self::GROUP_RULES[24]), diff --git a/crates/biome_css_analyze/src/lint/nursery/no_unknown_property.rs b/crates/biome_css_analyze/src/lint/nursery/no_unknown_property.rs index 24f8a2b463fa..e30ec54b2e94 100644 --- a/crates/biome_css_analyze/src/lint/nursery/no_unknown_property.rs +++ b/crates/biome_css_analyze/src/lint/nursery/no_unknown_property.rs @@ -1,4 +1,4 @@ -use biome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic}; +use biome_analyze::{context::RuleContext, declare_rule, Ast, Rule, RuleDiagnostic, RuleSource}; use biome_console::markup; use biome_css_syntax::CssGenericProperty; use biome_rowan::{AstNode, TextRange}; @@ -57,7 +57,8 @@ declare_rule! { version: "1.8.0", name: "noUnknownProperty", language: "css", - recommended: false, + recommended: true, + sources: &[RuleSource::Stylelint("property-no-unknown")], } }