-
-
Notifications
You must be signed in to change notification settings - Fork 56
Open
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.
What version of ESLint are you using?
9.35.0
What version of eslint-plugin-svelte
are you using?
3.12.3
What did you do?
<script lang="ts">
const element: HTMLElement | null = null; // fine.
const stateElement = $state<HTMLElement | null>(null); // Unexpected top-level browser global variable "HTMLElement". (eslint svelte/no-top-level-browser-globals)
</script>
What did you expect to happen?
No warning/error on the usage of the HTMLElement
type.
What actually happened?
An error.
Link to GitHub Repo with Minimal Reproducible Example
N.A.
Additional comments
No response
Metadata
Metadata
Assignees
Labels
No labels