in src/rules/img-redundant-alt.js [20:27]
test(_, props, _c, ctx) {
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;
}