chore: update to eslint 10 (#32646)

This commit is contained in:
Stephen Zhou
2026-02-27 19:44:54 +08:00
committed by GitHub
parent 233e12e631
commit 439ff3775d
7 changed files with 756 additions and 716 deletions

View File

@ -61,8 +61,7 @@ const ParamsConfig = ({
if (tempDataSetConfigs.retrieval_model === RETRIEVE_TYPE.multiWay) {
if (tempDataSetConfigs.reranking_enable
&& tempDataSetConfigs.reranking_mode === RerankingModeEnum.RerankingModel
&& !isCurrentRerankModelValid
) {
&& !isCurrentRerankModelValid) {
errMsg = t('datasetConfig.rerankModelRequired', { ns: 'appDebug' })
}
}

View File

@ -46,8 +46,7 @@ const nodeDefault: NodeDefault<HttpNodeType> = {
if (!errorMessages
&& payload.body.type === BodyType.binary
&& ((!(payload.body.data as BodyPayload)[0]?.file) || (payload.body.data as BodyPayload)[0]?.file?.length === 0)
) {
&& ((!(payload.body.data as BodyPayload)[0]?.file) || (payload.body.data as BodyPayload)[0]?.file?.length === 0)) {
errorMessages = t('errorMsg.fieldRequired', { ns: 'workflow', field: t('nodes.http.binaryFileVariable', { ns: 'workflow' }) })
}