eslint-plugin
eslint-plugin copied to clipboard
how to ignore property by pattern?
I'm using lingui/no-unlocalized-strings and it's showing warnings about attributes that shouldn't be localized, for example:
// getting error disallow literal stringeslint(lingui/no-unlocalized-strings)
<button data-custom-property-three="some data"/>
usually I would solve it with ignoreAttribute, but I have a lot of these custom properties. what I would like is to ignore by regex like data-custom-property-.*, or a similar syntax.
How can I achieve this?