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.
Relevant Package
scope-manager
Playground Link
Repro Code
class Class {
static {}
}
ESLint Config
No response
tsconfig
No response
Expected Result
I expected the static block to have its own scope but no scope is introduced.
Actual Result
There is no scope for the static block, but eslint-scope adds a scope (relevant PR).
Additional Info
A class for static blocks exists but the ClassVisitor does not reference it.
Versions
package | version |
---|---|
@typescript-eslint/scope-manager |
5.3.3 |