no-expression-in-message for Trans tags
When using the rule "no-expression-in-message", I would like to have warnings for <Trans> tags just like they warn when using t
+1 to Trans tags, and also inside msg (and by extension, defineMessage function calls)
const obj = { value: "the value" };
const example = msg`Expression to the right ${_obj.value} and to the left.`; // no warning here
We also want to see that. Contributions are welcome!
@hugohutri i created a PR https://github.com/lingui/eslint-plugin/pull/60/files adressing this.
However, enforcing this rule in the JSX is tricky. I haven't thought through all the possible cases here, so will need community help to test it.
+1 to
Transtags, and also insidemsg(and by extension,defineMessagefunction calls)const obj = { value: "the value" }; const example = msg`Expression to the right ${_obj.value} and to the left.`; // no warning here
implemented in https://github.com/lingui/eslint-plugin/pull/61