chore: enforce lint across codebase and ban "maybe" in identifiers

Remove member-ordering and complexity eslint-disable comments by reordering
class members and applying targeted fixes. Add metoyou/no-maybe-in-naming,
type-safe WebRTC e2e harness helpers, and resolve remaining lint errors so
npm run lint exits cleanly.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-11 11:08:26 +02:00
parent b630bacdc6
commit 79c6f91cd6
138 changed files with 4286 additions and 2310 deletions

View File

@@ -101,7 +101,20 @@ export class MessageSigningService {
const stored = this.readStoredKeyPair();
if (stored) {
const [publicKey, privateKey] = await Promise.all([crypto.subtle.importKey('jwk', stored.publicKeyJwk, { name: 'Ed25519' }, true, ['verify']), crypto.subtle.importKey('jwk', stored.privateKeyJwk, { name: 'Ed25519' }, false, ['sign'])]);
const publicKey = await crypto.subtle.importKey(
'jwk',
stored.publicKeyJwk,
{ name: 'Ed25519' },
true,
['verify']
);
const privateKey = await crypto.subtle.importKey(
'jwk',
stored.privateKeyJwk,
{ name: 'Ed25519' },
false,
['sign']
);
return { publicKey, privateKey };
}
@@ -111,7 +124,8 @@ export class MessageSigningService {
true,
['sign', 'verify']
);
const [publicKeyJwk, privateKeyJwk] = await Promise.all([crypto.subtle.exportKey('jwk', generated.publicKey), crypto.subtle.exportKey('jwk', generated.privateKey)]);
const publicKeyJwk = await crypto.subtle.exportKey('jwk', generated.publicKey);
const privateKeyJwk = await crypto.subtle.exportKey('jwk', generated.privateKey);
this.writeStoredKeyPair({ publicKeyJwk, privateKeyJwk });