DavidHDev / DavidHDev/svelte-bits
BorderGlow: eslint(no-unassigned-vars): 'cardRef' is always 'undefined' because it's never assigned.
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- Svelte
- Stars
- 364
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
src/$lib/components/svelte-bits/BorderGlow.svelte:73:6]
72 │
73 │ let cardRef: HTMLDivElement;
· ───────
74 │ let isHovered = $state(false);
╰────
help: Variable declared without assignment. Either assign a value or remove the declaration.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/$lib/components/svelte-bits/BorderGlow.svelte:73 and inspect how cardRef is used in the component. Run the project's lint check, then confirm the unassigned-vars warning is gone without changing the component's behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100