feat(lazer/js-sdk): add promises for open and disconnected #322
Annotations
10 errors and 4 warnings
Test:
lazer/sdk/js/examples/index.ts#L18
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
Test:
lazer/sdk/js/examples/index.ts#L87
Prefer top-level await over using a promise chain
|
Test:
lazer/sdk/js/examples/index.ts#L87
Prefer the safe `: unknown` for a catch callback variable
|
Test:
lazer/sdk/js/examples/index.ts#L89
Don't use process.exit(); throw an error instead
|
Test:
lazer/sdk/js/examples/index.ts#L89
Only use `process.exit()` in CLI apps. Throw an error instead
|
Test:
lazer/sdk/js/src/socket/resilient-web-socket.ts#L1
There should be at least one empty line between import groups
|
Test:
lazer/sdk/js/src/socket/resilient-web-socket.ts#L19
Type boolean trivially inferred from a boolean literal, remove type annotation
|
Test:
lazer/sdk/js/src/socket/resilient-web-socket.ts#L75
Prefer `return value` over `return Promise.resolve(value)`
|
Test:
lazer/sdk/js/src/socket/resilient-web-socket.ts#L90
Invalid type "5000" of template literal expression
|
Test:
lazer/sdk/js/src/socket/web-socket-pool.ts#L16
Type boolean trivially inferred from a boolean literal, remove type annotation
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test:
price_service/sdk/js/src/__tests__/AccumulatorUpdateData.test.ts#L14
'vaa' is assigned a value but never used
|
Test:
price_service/sdk/js/src/__tests__/AccumulatorUpdateData.test.ts#L76
'vaa' is assigned a value but never used
|
Test:
apps/hermes/client/js/src/examples/HermesClient.ts#L92
'_priceUpdate' is assigned a value but never used
|
Loading