Skip to content

fix: Resolve svelte-check and SSR build errors in chore/fix-lint-errors#386

Merged
andyparsons merged 2 commits into
contentauth:mainfrom
sherifhanna-google:sherifhanna-google/fix-lint-errors-build
May 1, 2026
Merged

fix: Resolve svelte-check and SSR build errors in chore/fix-lint-errors#386
andyparsons merged 2 commits into
contentauth:mainfrom
sherifhanna-google:sherifhanna-google/fix-lint-errors-build

Conversation

@sherifhanna-google
Copy link
Copy Markdown
Contributor

Summary

This PR resolves all 56 TypeScript, svelte-check, and Vite SSR build errors introduced on the chore/fix-lint-errors branch.

Key Fixes

  1. Vite SSR Resolve Alias: Maps intl-messageformat to its ESM bundle file (intl-messageformat.esm.js) to fix the SvelteKit postbuild analyse.js named export SyntaxError.
  2. Generative Info Type Fixes: Expands the softwareAgent type to correctly support string/object structures to fix failing unit tests.
  3. Zero-Trust Normalizations: Restores the lodash difference import and the validationResult property; casts string values to strict TrustSource union types.
  4. Safe Assertion Probing: Implements Map/Array/Object assertion probes to resolve implicit any type errors across 7 files.

With these fixes applied, svelte-check passes with 0 errors and 0 warnings, and the site builds cleanly.

- 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>
@sherifhanna-google sherifhanna-google force-pushed the sherifhanna-google/fix-lint-errors-build branch 3 times, most recently from ef04bc6 to 430039f Compare April 30, 2026 23:04
@sherifhanna-google sherifhanna-google force-pushed the sherifhanna-google/fix-lint-errors-build branch 2 times, most recently from 788f445 to b3fd7b9 Compare May 1, 2026 13:44
@sherifhanna-google sherifhanna-google force-pushed the sherifhanna-google/fix-lint-errors-build branch from b3fd7b9 to c8b42e4 Compare May 1, 2026 15:35
@andyparsons andyparsons self-requested a review May 1, 2026 19:42
@andyparsons andyparsons changed the base branch from chore/fix-lint-errors to main May 1, 2026 19:50
@andyparsons andyparsons merged commit 6b783d6 into contentauth:main May 1, 2026
3 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