[ESCONF-39] Does not detect failure to include "key" prop in loop entries Created: 25/Jan/24  Updated: 25/Jan/24

Status: Open
Project: eslint-config-stripes
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Mike Taylor Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: Zip Archive lintproblem.zip    
Sprint:
Story Points: 2
Development Team: Stripes Force
RCA Group: TBD

 Description   

Given a source file

import React from 'react';

export default function summarizeErrors(errors) {
  return (
    <ul>
      {
        errors.map(x => <li>{x.message}</li>)
      }
    </ul>
  );
}

eslint v7.32.0 using eslint-config-stripes v7.0.0 will not emit an error message for the generated <ul><li />...</ul> sequence, even though it does not include a key prop in the contained <li> elements.

The attached ZIP archive contains a folder to demonstrate this problem, containing package.json, yarn.lock, .eslintrc and a source file. Unpack, build with yarn and run the linter with yarn lint.


Generated at Thu Feb 08 22:15:10 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.