Create codemod for addressing ESLint warnings (#10032)

This commit is contained in:
DS Boyce
2026-03-11 15:51:31 -07:00
committed by GitHub
parent 80429ec902
commit 1db01a09a8
240 changed files with 1560 additions and 1347 deletions
+11 -4
View File
@@ -1,4 +1,11 @@
import React, {useContext, useState, useSyncExternalStore} from 'react'
import {
createContext,
useCallback,
useContext,
useEffect,
useState,
useSyncExternalStore,
} from 'react'
import {type ChatBskyConvoDefs} from '@atproto/api'
import {useFocusEffect} from '@react-navigation/native'
import {useQueryClient} from '@tanstack/react-query'
@@ -25,7 +32,7 @@ import {useAgent} from '#/state/session'
export * from '#/state/messages/convo/util'
const ChatContext = React.createContext<ConvoState | null>(null)
const ChatContext = createContext<ConvoState | null>(null)
ChatContext.displayName = 'ChatContext'
export function useConvo() {
@@ -82,7 +89,7 @@ export function ConvoProvider({
const appState = useAppState()
const isActive = appState === 'active'
useFocusEffect(
React.useCallback(() => {
useCallback(() => {
if (isActive) {
convo.resume()
markAsRead({convoId})
@@ -95,7 +102,7 @@ export function ConvoProvider({
}, [isActive, convo, convoId, markAsRead]),
)
React.useEffect(() => {
useEffect(() => {
return convo.on(event => {
switch (event.type) {
case 'invalidate-block-state': {