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
This commit is contained in:
Boshen 2024-10-13 07:58:01 +00:00
parent 1a93033b7b
commit c56343d1f3

View file

@ -49,7 +49,7 @@ declare_oxc_lint!(
/// const { bar } = obj?.foo; // TypeError
/// ```
NoUnsafeOptionalChaining,
restriction // TypeScript checks optional chaining
correctness
);
impl Rule for NoUnsafeOptionalChaining {