Skip to content

Commit

Permalink
Merge pull request #1902 from mightyiam/unified-signatures
Browse files Browse the repository at this point in the history
feat!: @typescript-eslint/unified-signatures
  • Loading branch information
mightyiam authored Nov 16, 2024
2 parents 2ac504e + cefd3b8 commit 7fd1d9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/rules/typescript-eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ const rules: PluginUsage = {
{ lib: 'never', path: 'never', types: 'never' },
],
'unbound-method': ['error', { ignoreStatic: false }],
'unified-signatures': [
'error',
{ ignoreDifferentlyNamedParameters: false },
],
},
}

Expand Down
4 changes: 4 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export const rulesToConsider: Record<string, string[]> = {
],
'@typescript-eslint': [
'@typescript-eslint/require-await',
'@typescript-eslint/unified-signatures',
'@typescript-eslint/use-unknown-in-catch-callback-variable',
],
}

0 comments on commit 7fd1d9f

Please sign in to comment.