chore(web): new lint setup (#30020)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
Stephen Zhou
2025-12-23 16:58:55 +08:00
committed by GitHub
parent 9701a2994b
commit f2842da397
3356 changed files with 85046 additions and 81278 deletions

View File

@ -1,21 +1,21 @@
import {
getOutgoers,
} from 'reactflow'
import { v4 as uuid4 } from 'uuid'
import {
uniqBy,
} from 'lodash-es'
import type {
Edge,
Node,
} from '../types'
import {
uniqBy,
} from 'lodash-es'
import {
getOutgoers,
} from 'reactflow'
import { v4 as uuid4 } from 'uuid'
import {
BlockEnum,
} from '../types'
export const canRunBySingle = (nodeType: BlockEnum, isChildNode: boolean) => {
// child node means in iteration or loop. Set value to iteration(or loop) may cause variable not exit problem in backend.
if(isChildNode && nodeType === BlockEnum.Assigner)
if (isChildNode && nodeType === BlockEnum.Assigner)
return false
return nodeType === BlockEnum.LLM
|| nodeType === BlockEnum.KnowledgeRetrieval