Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-var false positive in TS declare { var ... } block #1363

Open
mdesantis opened this issue Nov 26, 2024 · 0 comments
Open

no-var false positive in TS declare { var ... } block #1363

mdesantis opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mdesantis
Copy link

mdesantis commented Nov 26, 2024

Lint Name

no-var

Code Snippet

declare global {
  namespace globalThis {
    var test: string
  }
}

Expected Result

No lint warning, as declare { var ... } is fine AFAIK

Actual Result

`var` keyword is not allowed

Additional Info

Somehow related to #529 I guess

Version

deno 2.1.1 (stable, debug, x86_64-unknown-linux-gnu)
v8 13.0.245.12-rusty
typescript 5.6.2
@mdesantis mdesantis added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant