Skip to content

fix(prefer-optional-chain): false positive when checking with an any type#752

Merged
camc314 merged 3 commits intooxc-project:mainfrom
RTVision:fix/prefer-optional-check
Feb 26, 2026
Merged

fix(prefer-optional-chain): false positive when checking with an any type#752
camc314 merged 3 commits intooxc-project:mainfrom
RTVision:fix/prefer-optional-check

Conversation

@kalvenschraut
Copy link
Copy Markdown
Contributor

Fixed with AI given the test case. Found test case when I turned this rule on against a javascript file. Playground allows it
typescript-eslint-playground

@camc314 camc314 self-assigned this Feb 26, 2026
@camc314 camc314 enabled auto-merge (squash) February 26, 2026 14:59
@camc314 camc314 merged commit 24c80cc into oxc-project:main Feb 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants