[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: |
|
| 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. |