Hello!
As far as I know<img src="some-image.svg" role="img"> is an actual pattern that can be used to increase browser/screenreader support for SVG images specifically.
Thus, no-redundant-roles should allow images with role="img".
See the difference here comparing pattern 1 (no explicit role) and pattern 2 (with explicit role): https://www.smashingmagazine.com/2021/05/accessible-svg-patterns-comparison/
Hello!
As far as I know
<img src="some-image.svg" role="img">is an actual pattern that can be used to increase browser/screenreader support for SVG images specifically.Thus,
no-redundant-rolesshould allow images with role="img".See the difference here comparing pattern 1 (no explicit role) and pattern 2 (with explicit role): https://www.smashingmagazine.com/2021/05/accessible-svg-patterns-comparison/