From c9515847b48a372093fea64ba96efa9273273f6f Mon Sep 17 00:00:00 2001 From: The Stranger Date: Wed, 2 Oct 2024 17:31:24 +0800 Subject: [PATCH 1/2] chore: correct options name (ignoreNonDom) in the examples --- crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs b/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs index 1e036c9e7337..9009d7e29166 100644 --- a/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs +++ b/crates/biome_js_analyze/src/lint/a11y/use_valid_aria_role.rs @@ -49,7 +49,7 @@ declare_lint_rule! { /// "//": "...", /// "options": { /// "allowInvalidRoles": ["invalid-role", "text"], - /// "nonIgnoreDom": true + /// "ignoreNonDom": true /// } /// } /// ``` From e027853ffdfecfd647c85c8c3e5d43b3d8244d81 Mon Sep 17 00:00:00 2001 From: The Stranger Date: Wed, 2 Oct 2024 17:39:39 +0800 Subject: [PATCH 2/2] chore: change noUselessThisAlias to JS --- .../src/lint/complexity/no_useless_this_alias.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs b/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs index a450b6d7bc0c..33ebfd92c154 100644 --- a/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs +++ b/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs @@ -53,7 +53,7 @@ declare_lint_rule! { pub NoUselessThisAlias { version: "1.0.0", name: "noUselessThisAlias", - language: "ts", + language: "js", sources: &[RuleSource::EslintTypeScript("no-this-alias")], source_kind: RuleSourceKind::Inspired, recommended: true,