eslint-plugin
eslint-plugin copied to clipboard
New Rule: Disallow t inside t
Similar to the no-trans-inside-trans rule, I've noticed that there are failures to extract strings when a t is used inside a t. For example, this should be an error:
t`some text ${t`some other text`}`
Thanks for this great library!
Hi @jeresig, thanks for the suggestion!
I remember the same question in our Discord chat recently - https://discord.com/channels/974702239358783608/974704045346394172/1311126428300869692
Same issue for t inside plural. I see this again and again in our usage where people are wondering why the extraction is not working correctly.