From 888dd76e3c446e0e344e96186376563bb7fecf44 Mon Sep 17 00:00:00 2001 From: Ze-Zheng Wu Date: Tue, 21 May 2024 14:23:28 +0800 Subject: [PATCH] fix(no-danger): rule source typos --- .../src/lint/security/no_dangerously_set_inner_html.rs | 2 +- .../security/no_dangerously_set_inner_html_with_children.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html.rs b/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html.rs index ab1e02d4d4cc..a84867c52203 100644 --- a/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html.rs +++ b/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html.rs @@ -29,7 +29,7 @@ declare_rule! { version: "1.0.0", name: "noDangerouslySetInnerHtml", language: "jsx", - sources: &[RuleSource::EslintReact("no-danger-with-children")], + sources: &[RuleSource::EslintReact("no-danger")], recommended: true, } } diff --git a/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html_with_children.rs b/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html_with_children.rs index 7573dc95f9e9..c9f5aa773899 100644 --- a/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html_with_children.rs +++ b/crates/biome_js_analyze/src/lint/security/no_dangerously_set_inner_html_with_children.rs @@ -38,7 +38,7 @@ declare_rule! { version: "1.0.0", name: "noDangerouslySetInnerHtmlWithChildren", language: "jsx", - sources: &[RuleSource::EslintReact("no-danger")], + sources: &[RuleSource::EslintReact("no-danger-with-children")], recommended: true, } }