Skip to content

chore: fix all ESLint errors (103 → 0)#385

Open
andyparsons wants to merge 4 commits into
mainfrom
chore/fix-lint-errors
Open

chore: fix all ESLint errors (103 → 0)#385
andyparsons wants to merge 4 commits into
mainfrom
chore/fix-lint-errors

Conversation

@andyparsons
Copy link
Copy Markdown
Collaborator

Summary

  • Removed unused imports and variables across 17 files (loadThumbnail, AssetInfoDate, legacyToCrJson, getUntrustedManifestLabels, isCryptoValid, dead reactive declarations, etc.)
  • Replaced any types with specific inline types for C2PA assertion accesses, validation status objects, and trust-annotated manifest types
  • Fixed unused export prop in AssetInfoIssuerDate (export letexport const)
  • Fixed incorrect svelte-ignoreeslint-disable-next-line for {@html} in IssuedBySection
  • Auto-fixed 54 formatting violations (padding between statements, prefer-const, shorthand attributes/imports) via eslint --fix

Note: svelte-check reports 45 pre-existing type errors on main unrelated to these changes (down from 46 — one was incidentally fixed here).

Test plan

  • pnpm run lint passes with 0 errors (was 103)
  • Verify no regressions in the verify UI (asset loading, trust badges, provenance tree)

🤖 Generated with Claude Code

andyparsons and others added 4 commits April 30, 2026 13:28
- Remove unused imports and variables across 17 files
- Replace `any` types with specific inline types for C2PA assertion
  accesses, validation status objects, and trust-annotated manifest types
- Fix unused export prop in AssetInfoIssuerDate (let → const)
- Fix svelte-ignore → eslint-disable-next-line for {@html} in IssuedBySection
- Auto-fixed padding, prefer-const, and shorthand attribute violations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix type errors exposed after ESLint was fixed: replace string-indexed
assertion lookups with array .find() by label, add proper type
annotations for implicit-any parameters, and remove invalid c2pa module
augmentation (package is @contentauth/c2pa-web).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
entries in c2pa.training-mining is a Record<string, {use}>, not an
array — use Object.values().some() instead of .find().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reformats long lines in e2e tests, spec files, sdk.ts, and Svelte
components to comply with the project's print-width lint rules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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