⬆️(frontend) upgrade eslint-plugin-react-hooks by two major versions

The upgrade introduced around 50 new linting errors. Fix the
low-hanging fruit and address straightforward violations.

Several of the new rules appear to target patterns intended for newer
React compiler capabilities. Since the project currently runs on
React 18 rather than React 19, disable these rules for now instead of
applying potentially inappropriate changes.

Follow-up work can address the new rules in a dedicated PR, potentially
alongside a future React version upgrade.
This commit is contained in:
lebaudantoine
2026-06-04 12:54:43 +02:00
committed by aleb_the_flash
parent 27ebc2f2e3
commit a01f0256a1
28 changed files with 158 additions and 100 deletions
@@ -6,10 +6,11 @@ import Source = Track.Source
import { useMaybeLayoutContext } from '@livekit/components-react'
import { ParticipantTile } from '@/features/rooms/livekit/components/ParticipantTile'
import { StyledToastContainer, type ToastProps } from './Toast'
import { type ToastProps } from './Toast'
import { HStack, styled } from '@/styled-system/jsx'
import { Div } from '@/primitives'
import { useTranslation } from 'react-i18next'
import { StyledToastContainer } from './StyledToastContainer'
const ClickableToast = styled(RACButton, {
base: {