DavidHDev / DavidHDev/svelte-bits

BorderGlow: eslint(no-unassigned-vars): 'cardRef' is always 'undefined' because it's never assigned.

Open Beginner friendly
#24 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.