diff --git a/web/app/components/workflow/types.ts b/web/app/components/workflow/types.ts index 01a7e49899..1026f88a73 100644 --- a/web/app/components/workflow/types.ts +++ b/web/app/components/workflow/types.ts @@ -245,7 +245,6 @@ export const PromptRole = { assistant: 'assistant', } as const -// eslint-disable-next-line ts/no-redeclare -- value-type pair export type PromptRole = typeof PromptRole[keyof typeof PromptRole] export enum EditionType { diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs index d5d833ba69..9217b08868 100644 --- a/web/eslint.config.mjs +++ b/web/eslint.config.mjs @@ -36,6 +36,7 @@ export default antfu( overrides: { 'ts/consistent-type-definitions': ['error', 'type'], 'ts/no-explicit-any': 'error', + 'ts/no-redeclare': 'off', }, erasableOnly: true, }, diff --git a/web/models/access-control.ts b/web/models/access-control.ts index fab6c33fe7..4d868a464c 100644 --- a/web/models/access-control.ts +++ b/web/models/access-control.ts @@ -3,7 +3,6 @@ export const SubjectType = { ACCOUNT: 'account', } as const -// eslint-disable-next-line ts/no-redeclare -- value-type pair export type SubjectType = typeof SubjectType[keyof typeof SubjectType] export const AccessMode = { @@ -13,7 +12,6 @@ export const AccessMode = { EXTERNAL_MEMBERS: 'sso_verified', } as const -// eslint-disable-next-line ts/no-redeclare -- value-type pair export type AccessMode = typeof AccessMode[keyof typeof AccessMode] export type AccessControlGroup = { diff --git a/web/models/debug.ts b/web/models/debug.ts index 86de2b0217..dc2e827ef3 100644 --- a/web/models/debug.ts +++ b/web/models/debug.ts @@ -18,7 +18,6 @@ export const PromptMode = { advanced: 'advanced', } as const -// eslint-disable-next-line ts/no-redeclare -- value-type pair export type PromptMode = typeof PromptMode[keyof typeof PromptMode] export type PromptItem = { @@ -51,7 +50,6 @@ export const PromptRole = { assistant: 'assistant', } as const -// eslint-disable-next-line ts/no-redeclare -- value-type pair export type PromptRole = typeof PromptRole[keyof typeof PromptRole] export type PromptVariable = { diff --git a/web/service/share.ts b/web/service/share.ts index d2e2d0a3b6..37e710afc6 100644 --- a/web/service/share.ts +++ b/web/service/share.ts @@ -35,7 +35,6 @@ export const AppSourceType = { tryApp: 'tryApp', } as const -// eslint-disable-next-line ts/no-redeclare -- value-type pair export type AppSourceType = typeof AppSourceType[keyof typeof AppSourceType] const apiPrefix = {