Skip to content

Conversation

@lodyai
Copy link
Contributor

@lodyai lodyai bot commented Jan 4, 2026

This PR fixes lint errors introduced in PR #44 that cause CI to fail.

Changes

packages/loro-websocket/tests/handshake-auth.test.ts:

  • Remove unused expect import
  • Replace ws.onopen/ws.onerror with ws.addEventListener() (unicorn/prefer-add-event-listener)
  • Change arrow shorthand to block statements to avoid void expression returns (no-confusing-void-expression)
  • Remove unused err parameter

packages/loro-websocket/src/server/simple-server.ts:

  • Replace any type with proper verifyClient function type (no-explicit-any)

Testing

  • All lint checks pass (only warnings remain, no errors)
  • All tests pass

- Replace arrow shorthand with block statements to avoid void expression returns
- Use addEventListener instead of onopen/onerror properties
- Remove unused 'expect' import and unused 'err' parameter
- Replace 'any' type with proper verifyClient function type

Co-authored-by: lody <[email protected]>
@zxch3n zxch3n merged commit 206fa93 into main Jan 4, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Jan 4, 2026
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.

3 participants