Run the lint command locally on the failing file and note every element the rule flags.

For each image that conveys information, add an alt attribute describing what the image shows, in context.

For each purely decorative image, add an empty alt attribute (alt with nothing in it).

If the flagged element is a custom component that renders an image, add that component name to the alt-text rule options in the ESLint config so the rule checks its alt prop too, or pass alt through to the underlying image.

Re-run lint for the whole project, not just the edited files.