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:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user