Hello and thank you for your work. I believe the jsx-use-translation-function rule should look into what an expression evaluates to, not only for string literals alone.
Linted code
<div>{true ? 'Told ya' : 'Not really'}</div>
Expected result
String literals are disallowed as JSX. Use a translation function (jsx-use-translation-function)
Hello and thank you for your work. I believe the
jsx-use-translation-function
rule should look into what an expression evaluates to, not only for string literals alone.Linted code
Expected result
Actual result
No error.
Configuration
tslint
:5.9.1
tslint-react
:3.5.1