ci: fix eslint slow
This commit is contained in:
parent
8acefaa907
commit
40d9629681
@ -55,11 +55,14 @@ export default defineConfig([
|
||||
{
|
||||
ignores: [
|
||||
'node_modules/**',
|
||||
'build/**',
|
||||
'dist/**',
|
||||
'out/**',
|
||||
'local/**',
|
||||
'.yarn/**',
|
||||
'.gitignore',
|
||||
'scripts/cloudflare-worker.js',
|
||||
'src/renderer/src/integration/nutstore/sso/lib/**'
|
||||
'src/main/integration/nutstore/sso/lib/**'
|
||||
]
|
||||
}
|
||||
])
|
||||
|
||||
@ -5,7 +5,7 @@ import { app } from 'electron'
|
||||
import Logger from 'electron-log'
|
||||
import * as fs from 'fs-extra'
|
||||
import * as path from 'path'
|
||||
import { createClient, FileStat, CreateDirectoryOptions } from 'webdav'
|
||||
import { createClient, CreateDirectoryOptions, FileStat } from 'webdav'
|
||||
|
||||
import WebDav from './WebDav'
|
||||
import { windowService } from './WindowService'
|
||||
|
||||
@ -429,6 +429,7 @@ const ChatFlowHistory: FC<ChatFlowHistoryProps> = ({ conversationId }) => {
|
||||
}
|
||||
|
||||
return { nodes: flowNodes, edges: flowEdges }
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [topicId, messages, userMessages, assistantMessages, t])
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@ -67,6 +67,7 @@ const MessageGroup = ({ messages, topic, hidePresetMessages }: Props) => {
|
||||
return () => {
|
||||
document.removeEventListener('flow-navigate-to-message', handleFlowNavigate as EventListener)
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [messages, selectedIndex, isGrouped, messageLength])
|
||||
|
||||
const setSelectedMessage = useCallback(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user