refactor: disable ts/no-redeclare rule globally instead of inline comments

TypeScript handles redeclaration checking natively, making the
ts/no-redeclare ESLint rule redundant. Disabled it in the eslint
config and removed all inline eslint-disable comments.
This commit is contained in:
Mahmoud Hamdi 2026-03-23 15:43:00 +02:00
parent 9bfbf1fa9b
commit 0a90d5ba52
4 changed files with 1 additions and 6 deletions

View File

@ -38,7 +38,6 @@ export const AnnotationEnableStatus = {
disable: 'disable',
} as const
// eslint-disable-next-line ts/no-redeclare -- value-type pair
export type AnnotationEnableStatus = typeof AnnotationEnableStatus[keyof typeof AnnotationEnableStatus]
export const JobStatus = {
@ -47,5 +46,4 @@ export const JobStatus = {
completed: 'completed',
} as const
// eslint-disable-next-line ts/no-redeclare -- value-type pair
export type JobStatus = typeof JobStatus[keyof typeof JobStatus]

View File

@ -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,
},

View File

@ -3,5 +3,4 @@ export const FlowType = {
ragPipeline: 'ragPipeline',
} as const
// eslint-disable-next-line ts/no-redeclare -- value-type pair
export type FlowType = typeof FlowType[keyof typeof FlowType]

View File

@ -6,7 +6,6 @@ export const SSOProtocol = {
OAuth2: 'oauth2',
} as const
// eslint-disable-next-line ts/no-redeclare -- value-type pair
export type SSOProtocol = typeof SSOProtocol[keyof typeof SSOProtocol]
export const LicenseStatus = {
@ -18,7 +17,6 @@ export const LicenseStatus = {
LOST: 'lost',
} as const
// eslint-disable-next-line ts/no-redeclare -- value-type pair
export type LicenseStatus = typeof LicenseStatus[keyof typeof LicenseStatus]
export const InstallationScope = {
@ -28,7 +26,6 @@ export const InstallationScope = {
OFFICIAL_AND_PARTNER: 'official_and_specific_partners',
} as const
// eslint-disable-next-line ts/no-redeclare -- value-type pair
export type InstallationScope = typeof InstallationScope[keyof typeof InstallationScope]
type License = {