Bug: [prefer-find] Add support for checking ternaries #8379
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
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://main--typescript-eslint.netlify.app/rules/prefer-find
Description
This addresses a minor omission when I did the PR for this rule (#8216).
I forgot to add support for checking ternary branches. I've made a quick branch that would add support. See aa43ec6
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: