[no-implied-eval] False positive for ternary conditions like setTimeout(cond ? func1 : func2) #3099
Closed
3 tasks done
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
The expression passed as the first parameter to
setTimeout
has the type() => void
so I expected it to not raise an error from this linting rule that is supposed to detect strings.Actual Result
Additional Info
Versions
@typescript-eslint/eslint-plugin
4.15.2
@typescript-eslint/parser
4.15.2
TypeScript
4.1.5
ESLint
7.20.0
node
14.15.4
The text was updated successfully, but these errors were encountered: