Turn off the prism index-key rule and drop the stale directives.
This commit is contained in:
@@ -117,6 +117,9 @@ export default [
|
|||||||
|
|
||||||
// Matrix video events carry no caption field, so there is no caption source to read.
|
// Matrix video events carry no caption field, so there is no caption source to read.
|
||||||
'jsx-a11y/media-has-caption': 'off',
|
'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) =>
|
].flatMap((config) =>
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ function CompareEmoji({ sasData }: { sasData: ShowSasCallbacks }) {
|
|||||||
>
|
>
|
||||||
{sasData.sas.emoji?.map(([emoji, name], index) => (
|
{sasData.sas.emoji?.map(([emoji, name], index) => (
|
||||||
<Box
|
<Box
|
||||||
// eslint-disable-next-line react/no-array-index-key
|
|
||||||
key={`${emoji}${name}${index}`}
|
key={`${emoji}${name}${index}`}
|
||||||
direction="Column"
|
direction="Column"
|
||||||
gap="100"
|
gap="100"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable react/no-array-index-key */
|
|
||||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
import { Badge, Box, Button, Chip, config, Menu, Spinner, Text } from 'folds';
|
import { Badge, Box, Button, Chip, config, Menu, Spinner, Text } from 'folds';
|
||||||
import { EventType } from 'matrix-js-sdk';
|
import { EventType } from 'matrix-js-sdk';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable react/no-array-index-key */
|
|
||||||
import React, { useState, MouseEventHandler, ReactNode } from 'react';
|
import React, { useState, MouseEventHandler, ReactNode } from 'react';
|
||||||
import FocusTrap from 'focus-trap-react';
|
import FocusTrap from 'focus-trap-react';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ export function ForumPostUploadField({
|
|||||||
.reverse()
|
.reverse()
|
||||||
.map((fileItem, index) => (
|
.map((fileItem, index) => (
|
||||||
<UploadCardRenderer
|
<UploadCardRenderer
|
||||||
// eslint-disable-next-line react/no-array-index-key
|
|
||||||
key={index}
|
key={index}
|
||||||
isEncrypted={!!fileItem.encInfo}
|
isEncrypted={!!fileItem.encInfo}
|
||||||
fileItem={fileItem}
|
fileItem={fileItem}
|
||||||
|
|||||||
@@ -635,7 +635,6 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
|||||||
.reverse()
|
.reverse()
|
||||||
.map((fileItem, index) => (
|
.map((fileItem, index) => (
|
||||||
<UploadCardRenderer
|
<UploadCardRenderer
|
||||||
// eslint-disable-next-line react/no-array-index-key
|
|
||||||
key={index}
|
key={index}
|
||||||
isEncrypted={!!fileItem.encInfo}
|
isEncrypted={!!fileItem.encInfo}
|
||||||
fileItem={fileItem}
|
fileItem={fileItem}
|
||||||
|
|||||||
Reference in New Issue
Block a user