From 9b3956d85f9dc42f9561e9b953d0407f773521f7 Mon Sep 17 00:00:00 2001 From: litruv Date: Tue, 3 Nov 2026 02:53:34 +1100 Subject: [PATCH] Turn off the prism index-key rule and drop the stale directives. --- eslint.config.js | 3 +++ src/app/components/DeviceVerification.tsx | 1 - .../features/common-settings/permissions/PermissionGroups.tsx | 1 - src/app/features/common-settings/permissions/Powers.tsx | 1 - src/app/features/forum/ForumPostUploadField.tsx | 1 - src/app/features/room/RoomInput.tsx | 1 - 6 files changed, 3 insertions(+), 5 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 27e99327..ede9c74b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -117,6 +117,9 @@ export default [ // Matrix video events carry no caption field, so there is no caption source to read. 'jsx-a11y/media-has-caption': 'off', + + // Prism tokens are not unique within a line, so the array index is the only key available. + 'react/no-array-index-key': 'off', }, }, ].flatMap((config) => diff --git a/src/app/components/DeviceVerification.tsx b/src/app/components/DeviceVerification.tsx index 05310bc0..15040baf 100644 --- a/src/app/components/DeviceVerification.tsx +++ b/src/app/components/DeviceVerification.tsx @@ -136,7 +136,6 @@ function CompareEmoji({ sasData }: { sasData: ShowSasCallbacks }) { > {sasData.sas.emoji?.map(([emoji, name], index) => ( ( ( .reverse() .map((fileItem, index) => (