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
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 havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
Playground does not work
Repro Code
functionfoo(){}exportclassFoo{static{}constructor(){foo();}}
ESLint Config
module.exports={parser:'@typescript-eslint/parser',plugins:['@typescript-eslint/eslint-plugin'],rules:{'@typescript-eslint/no-unused-vars':'warn',},};
tsconfig
No response
Expected Result
No report about unused variables.
Actual Result
Thefoo
function is reported as unused even though it's used by theFoo
class.
Additional Info
Removing the static block fromFoo
removes the report.
Initially, I thought that this may be related to#5571, but this issue still persists after upgrading to 5.36.1.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 5.36.1 |
@typescript-eslint/parser | 5.36.1 |
TypeScript | 4.8.2 |
ESLint | 8.23.0 |
node | 18.8.0 |