Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
declare function f(...a: number[]): void;
declare function f(...a: string[]): void;
declare function g(...a: number[]): void;
declare function g(...b: string[]): void;
ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/unified-signatures": ["error", { "ignoreDifferentlyNamedParameters": true }]
}
}
tsconfig
Expected Result
In unified-signatures
' document:
// "@typescript-eslint/unified-signatures": ["error", { "ignoreDifferentlyNamedParameters": true }]
// Incorrect
function f(...a: number[]): void;
function f(...b: string[]): void;
// Correct
function f(...a: number[]): void;
function f(...a: string[]): void;
In my opinion the document is also wrong. The first one with different name should be correct, and the second one with the same name should be incorrect.
Actual Result
No error is given, no matter ignoreDifferentlyNamedParameters
is true
or false
.
Additional Info
No response