Skip to content

chore(lint): clear svelte-check warnings and promote four ESLint rules - #43

Merged
fullstackjam merged 3 commits into
mainfrom
chore/promote-lint-warnings-batch-1
Dec 1, 2026
Merged

fullstackjam merged 3 commits into
mainfrom
chore/promote-lint-warnings-batch-1

Conversation

@fullstackjam

Copy link
Copy Markdown
Member

Summary

  • Clear all 4 svelte-check warnings across ConfigEditor.svelte, SiteHeader.svelte, docs/+layout.svelte, and explore/+page.svelte (zero errors, zero warnings).
  • Clean up and promote 4 ESLint rules from warn to error in eslint.config.js (reducing total ESLint warnings from 217 to 168):
    • @typescript-eslint/no-unused-vars (6 occurrences removed)
    • no-useless-assignment (10 redundant initializers before try/catch removed)
    • svelte/no-useless-mustaches (enabled as ['error', { ignoreStringEscape: true }] so multiline escaped attribute literals like \n placeholders stay allowed)
    • @typescript-eslint/no-explicit-any (32 occurrences across 11 files replaced with shared PackageInput and new SnapshotMacOSPref / ConfigSnapshot types in src/lib/types.ts, plus typed load outputs in [username] routes)
  • Update docs/HARNESS.md to reflect the promoted rules.

Verification

  • npm run validate passed locally on 3e7e05b:
    • npm run lint: 0 errors, 168 warnings (0 warnings from all 4 promoted rules)
    • npm run check: 0 errors, 0 warnings
    • npm run test:run: happy-dom 8/8 files (115/115 tests), workers 15/15 files (201/201 tests)
    • npm run build: SSR + client + @sveltejs/adapter-cloudflare succeeded
  • Verified via npx eslint --stdin that all 4 promoted rules fail with error (exit 1) on violating snippets.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T13:24:05.607185Z 3e7e05b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fullstackjam
fullstackjam merged commit 4dac22b into main Dec 1, 2026
6 checks passed
@fullstackjam
fullstackjam deleted the chore/promote-lint-warnings-batch-1 branch December 1, 2026 13:35
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.

1 participant