-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
]
}
}
export type F<A extends unknown[]> = (...a: A) => unknown;
Expected Result
No error
Actual Result
Error - 'A' is defined but never used.eslint@typescript-eslint/no-unused-vars
Additional Info
When removing the ...
before a
, the error is no longer reported (although obviously this is a completely different type - just including this info in case it's helpful). i.e. this is fine:
export type F<A extends unknown[]> = (a: A) => unknown;
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.0.1 |
@typescript-eslint/parser |
4.0.1 |
TypeScript |
4.0.2 |
ESLint |
7.7.0 |
node |
12.17.0 |
toshimaru, daviddelusenet, itajaja, DisappearedStar, tonydehnke and 7 morebradzacher and daviddelusenetpapb, daviddelusenet and tonydehnke
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin