Enhancement: [prefer-optional-chain] Support simple equals expressions #7986
Labels
duplicate
This issue or pull request already exists
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
prefer-optional-chain
could also support cases like the following:This is probably a very common pattern and would be nice to be handled by the rule.
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: