Warns about unnecessarily wrapping a string that only contains an expression.
{
"rules": {
"i18n-lingui/no-useless-string-wrapping": 1
}
}
Examples of incorrect code for this rule:
<Trans>{name}</Trans>;
t`${name}`;
Examples of correct code for this rule:
<Trans>Hello {name}</Trans>;
t`hello ${name}`;