Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Repro
{"parser":"@typescript-eslint/parser","plugins": ["@typescript-eslint" ],"rules": {"@typescript-eslint/no-unused-vars":"error" }}
functionfoo(x:null){returnx}letx=nullx=foo(x)
Expected Result
7:1 error 'x' is assigned a value but never used. @typescript-eslint/no-unused-varsx = foo(x)^ error here
Actual Result
7:9 error 'x' is assigned a value but never used. @typescript-eslint/no-unused-varsx = foo(x) ^ error here
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 5.22.0 |
@typescript-eslint/parser | 5.22.0 |
TypeScript | 4.6.2 |
ESLint | 8.14.0 |
node | 16.12.0 |