From c56343d1f3098364e04866da18e6d169671f7acc Mon Sep 17 00:00:00 2001 From: Boshen <1430279+Boshen@users.noreply.github.com> Date: Sun, 13 Oct 2024 07:58:01 +0000 Subject: [PATCH] feat(linter): promote `no_unsafe_optional_chaining` to correctness (#6491) It's in the eslint recommended list https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining --- .../oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs b/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs index dcc88d21a44e0..5f9be9e87c962 100644 --- a/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs +++ b/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs @@ -49,7 +49,7 @@ declare_oxc_lint!( /// const { bar } = obj?.foo; // TypeError /// ``` NoUnsafeOptionalChaining, - restriction // TypeScript checks optional chaining + correctness ); impl Rule for NoUnsafeOptionalChaining {