While crawling on random projects on Github. I have found several false positives/false negatives arising from code which I consider to be anti-patterns. I do not plan to support these features.
const MyComponent = () => (
<button onClick={alert('Some string')}>
)
const MyComponent = () => (
<button onClick={alert('Some string')}>
)
const MyComponent = (src) => (
<img src={require(`../${src}`)}>
)
const MyComponent = (src) => (
<img src={require(`${i18n.t(k._)}${src}`)}>
)
const MyComponent = () => (
<div>({someLiteral})</div>
)
const MyComponent = () => (
<div>{i18n.t(k._)}{someLiteral}{i18n.t(k._1)}</div>
)