Skip to content

Commit

Permalink
eslint: Enable react/jsx-key rule (#39709)
Browse files Browse the repository at this point in the history
This rule requires a `key` prop be specified on elements that it thinks
probably need one, namely elements inside arrays or returned from
iterators for `.map()` and the like.

In practice most of the cases fixed here are probably pointless, since
the arrays are never going to be sorted or modified at runtime. But it's
easier to add a key than to write a comment justifing ignoring it in
each case.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11276878860

Upstream-Ref: Automattic/jetpack@391bb78
  • Loading branch information
anomiex authored and matticbot committed Oct 10, 2024
1 parent e41b9d6 commit c9d74ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@automattic/jetpack-analytics": "^0.1.31",
"@automattic/jetpack-components": "^0.56.3",
"@automattic/jetpack-components": "^0.56.4-alpha",
"@automattic/jetpack-shared-extension-utils": "^0.15.13-alpha",
"@wordpress/block-editor": "14.4.0",
"@wordpress/components": "28.9.0",
Expand Down

0 comments on commit c9d74ef

Please sign in to comment.