💅 lint/correctness/noUnusedVariables
false positives
#3135
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
noUnusedVariables
Playground link
https://biomejs.dev/playground/?lintRules=all&code=ZQB4AHAAbwByAHQAIAB0AHkAcABlACAAQwBsAGEAcwBzAGwAaQBrAGUAIAA9ACAAbgBlAHcAIAAoAGEAcgBnADoAIAB1AG4AawBuAG8AdwBuACkAIAA9AD4AIABzAHQAcgBpAG4AZwA7AAoACgBlAHgAcABvAHIAdAAgAHQAeQBwAGUAIABGAHUAbgBjAHQAaQBvAG4AbABpAGsAZQAgAD0AIAAoAGEAcgBnADoAIAB1AG4AawBuAG8AdwBuACkAIAA9AD4AIABzAHQAcgBpAG4AZwA7AAoA
Expected result
As you see in the playground,
arg
intype Classlike = new (arg: unknown) => string
is reported as unused. Seems like this is a mistake, becausearg
intype Functionlike = (arg: unknown) => string
is not reported as unused.Code of Conduct
The text was updated successfully, but these errors were encountered: