victorsoares96 / eslint-plugin-react-intl-universal

ESLint plugin for React Intl Universal Library enforce locale and avoid display literal strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: add jsx-attribute-value exclude and include filter in no-literal-string rule

victorsoares96 opened this issue · comments

It would be interesting to have a way to exclude or include a jsx element that contains a certain value for its jsx attribute, such as:

<img src={badge} alt="Awesome" className="badge" />

In this case, it would be to exclude from the rule the element that contains a jsx alt Awesome