eslint-plugin icon indicating copy to clipboard operation
eslint-plugin copied to clipboard

how to ignore property by pattern?

Open KutnerUri opened this issue 1 year ago • 0 comments

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?

KutnerUri avatar May 09 '24 09:05 KutnerUri