Skip to content

chore: remove file-level eslint-disable directives in PresentationVerify.ts (#650)#656

Open
A-Chronicle wants to merge 1 commit into
hyperledger-identus:mainfrom
A-Chronicle:fix/remove-eslint-disable-PresentationVerify
Open

chore: remove file-level eslint-disable directives in PresentationVerify.ts (#650)#656
A-Chronicle wants to merge 1 commit into
hyperledger-identus:mainfrom
A-Chronicle:fix/remove-eslint-disable-PresentationVerify

Conversation

@A-Chronicle

Copy link
Copy Markdown
Contributor

Closes #650

Removes 4 file-level eslint-disable directives and fixes each type violation with proper type annotations and runtime validation:

  • anyunknown in method signatures for type safety
  • Record<string, unknown> casts at data boundary points
  • Runtime type narrowing (typeof checks, instanceof checks)
  • Inline as type assertions where values originate from external APIs (credential.id, credential.issuer, etc.)
  • Fix catch block error handling: use err instanceof Error instead of (err as Error).message pattern
  • Fix SDJWT issuer type: convert string to DID via DID.fromString() (was passing string where DID was expected)
  • Fix template literal type errors with explicit string casts

Lint passes with 0 errors.

@A-Chronicle A-Chronicle requested a review from a team as a code owner June 3, 2026 18:06
…ify.ts

Remove 4 file-level eslint-disable directives and fix each type violation with proper type annotations and runtime validation:

- Replace any with unknown in method signatures for type safety
- Use Record<string, unknown> casts at data boundary points
- Add runtime type narrowing (typeof checks, instanceof checks)
- Use inline as type assertions where values originate from external APIs (credential.id, credential.issuer, etc.)
- Fix catch block error handling: use err instanceof Error instead of (err as Error).message pattern
- Fix SDJWT issuer type: convert string to DID via DID.fromString()
- Fix template literal type errors with explicit string casts

Signed-off-by: A-Chronicle <chaubeyanshika319@gmail.com>
@A-Chronicle A-Chronicle force-pushed the fix/remove-eslint-disable-PresentationVerify branch from d139e60 to ae264d6 Compare June 3, 2026 19:08
@sonarqubecloud

sonarqubecloud Bot commented Jun 3, 2026

Copy link
Copy Markdown

@A-Chronicle

Copy link
Copy Markdown
Contributor Author

hey @elribonazo ! I fixed this issue yesterday and it would be just great if you can review it and
provide me constructive feedbacks

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.

chore: remove file-level eslint-disable directives in PresentationVerify.ts

1 participant