Skip to content

fix: refactor unused expressions into proper statements#504

Merged
gka merged 1 commit intomainfrom
fix/no-unused-expressions
Mar 2, 2026
Merged

fix: refactor unused expressions into proper statements#504
gka merged 1 commit intomainfrom
fix/no-unused-expressions

Conversation

@ljodea
Copy link
Copy Markdown
Collaborator

@ljodea ljodea commented Feb 27, 2026

Summary

  • Refactors comma expressions (e.g. ((sum += value), (sumSquared += value ** 2))) into separate statements
  • Changes bare rest; to void rest; in Svelte theme components for explicit reactivity tracking
  • Fixes all 10 no-unused-expressions oxlint warnings across 6 files

Files changed

  • src/lib/helpers/arrowPath.ts — 3 comma expressions → separate statements
  • src/lib/transforms/bollinger.ts — 3 comma expressions → separate statements
  • src/lib/transforms/density.ts — 1 (lo = hi) || ...lo = hi || ...
  • src/theme/components/GlobalLayout.svelterest;void rest;
  • src/theme/components/NavItem.svelterest;void rest;
  • src/theme/components/IconifyIcon.svelterest;void rest;

Test plan

  • pnpm exec oxlint --type-aware — 0 no-unused-expressions warnings
  • pnpm test — all tests pass
  • pnpm check — 0 svelte-check errors

🤖 Generated with Claude Code

- Refactor comma expressions into separate statements in arrowPath.ts,
  bollinger.ts, and density.ts
- Change bare `rest;` to `void rest;` in theme components for Svelte
  reactivity tracking

Fixes all 10 no-unused-expressions oxlint warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 27, 2026

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit c136fe3
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/69a1f01891c5f600087e2fa7
😎 Deploy Preview https://deploy-preview-504--svelteplot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gka gka merged commit cf244c3 into main Mar 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants