From cefd3b81dfa3310ea93d8f5ddb62e02c0d8277fc Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sat, 16 Nov 2024 17:05:17 +0700 Subject: [PATCH] feat!: @typescript-eslint/unified-signatures --- src/rules/typescript-eslint.ts | 4 ++++ src/test/_expected-exported-value.ts | 4 ++++ src/test/_rules_to_consider.ts | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/rules/typescript-eslint.ts b/src/rules/typescript-eslint.ts index 91899f9c..ccb6a7ff 100644 --- a/src/rules/typescript-eslint.ts +++ b/src/rules/typescript-eslint.ts @@ -273,6 +273,10 @@ const rules: PluginUsage = { { lib: 'never', path: 'never', types: 'never' }, ], 'unbound-method': ['error', { ignoreStatic: false }], + 'unified-signatures': [ + 'error', + { ignoreDifferentlyNamedParameters: false }, + ], }, } diff --git a/src/test/_expected-exported-value.ts b/src/test/_expected-exported-value.ts index 6caafb0f..2c59a8c4 100644 --- a/src/test/_expected-exported-value.ts +++ b/src/test/_expected-exported-value.ts @@ -481,6 +481,10 @@ export const expectedTseslintRules: Record< { lib: 'never', path: 'never', types: 'never' }, ], '@typescript-eslint/unbound-method': ['error', { ignoreStatic: false }], + '@typescript-eslint/unified-signatures': [ + 'error', + { ignoreDifferentlyNamedParameters: false }, + ], } export const expectedExportedRules = { diff --git a/src/test/_rules_to_consider.ts b/src/test/_rules_to_consider.ts index de54d5fe..092fe00b 100644 --- a/src/test/_rules_to_consider.ts +++ b/src/test/_rules_to_consider.ts @@ -187,7 +187,6 @@ export const rulesToConsider: Record = { ], '@typescript-eslint': [ '@typescript-eslint/require-await', - '@typescript-eslint/unified-signatures', '@typescript-eslint/use-unknown-in-catch-callback-variable', ], }