New Rule: Disallow t inside t
Open
Nobody has claimed this yet.
enhancement
help wanted
- Dominant language
- TypeScript
- Stars
- 33
- Forks
- 25
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 9
Description
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing no-trans-inside-trans rule and its related tests, then compare how nested tagged templates are detected. Add the new rule for a t used inside another t and verify that the reported example is rejected without affecting valid translations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100