Enhancement: [prefer-optional-chain] Suggest optional chain when the start of the expression is already optionally chained #5697
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement: plugin rule option
New rule option for an existing eslint-plugin rule
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Proposal Please Confirm You Have Done The Following...
My proposal is suitable for this project
Link to the rule's documentation
https://typescript-eslint.io/rules/prefer-optional-chain/
Description
I propose that the
prefer-optional-chain
should suggest combining logical expressions that start with an optional chainDiscovered while making test cases in #5594
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: