You can bypass the no-array-index-key rule with toString().
In other words, this gives an error:
foo.map((bar, index) => (
<Element key={index} bar={bar} />
))
But this doesn't:
foo.map((bar, index) => (
<Element key={index.toString()} bar={bar} />
))