You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the jsx-use-translation-function is very useful already, but it cannot identify problems when strings that need to be translated are passed in as certain props.
For example, if a component accepts a prop "label", we might want to be sure that is not a string literal.
The rule contains some hardcoded names (e.g. "title") that do get checked, but there's no way to specify extra ones in case a component uses one that is not part of that hardcoded list.
It would be very useful if the rule would accept an option to specify a list of prop/attribute names to check.
The text was updated successfully, but these errors were encountered:
Seems very useful!
I would very much also like to have an option of passing in empty strings as alt-attributes. If I can set a rule that says that empty string literal is totally ok for alt-attributes that would be great.
the jsx-use-translation-function is very useful already, but it cannot identify problems when strings that need to be translated are passed in as certain props.
For example, if a component accepts a prop "label", we might want to be sure that is not a string literal.
The rule contains some hardcoded names (e.g. "title") that do get checked, but there's no way to specify extra ones in case a component uses one that is not part of that hardcoded list.
It would be very useful if the rule would accept an option to specify a list of prop/attribute names to check.
The text was updated successfully, but these errors were encountered: