chore: enable react/no-array-index-key eslint (#3696)

* chore: enable react/no-array-index-key eslint

* fix: add missing key to ResourcesTable
This commit is contained in:
Joe Previte
2022-08-25 11:20:24 -07:00
committed by GitHub
parent 8a446837d4
commit 94e96fa40b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -115,6 +115,7 @@ rules:
- error
- children: ignore
# https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
react/jsx-key: error
react/jsx-uses-react: "off"
react/react-in-jsx-scope: "off"
settings:
@@ -55,7 +55,7 @@ export const TemplateResourcesTable: FC<React.PropsWithChildren<TemplateResource
// If there is no agent, just display the resource name
if (!agent) {
return (
<TableRow>
<TableRow key={resource.id}>
<TableCell className={styles.resourceNameCell}>
<AvatarData
title={resource.name}