in src/rules/redundant-alt.js [21:29]
test(_, props, _c, ctx) {
warnRuleDeprecated('redundant-alt', 'img-redundant-alt');
const hidden = hiddenFromAT(props);
const alt = (props.alt || '').toLowerCase();
const words = ctx.options[0] || def;
const contains = words.reduce((acc, word) => acc || (alt.indexOf(word) >= 0), false);
return hidden || !contains;
}