Skip to content

Commit

Permalink
eslint サヨナラ
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Nov 17, 2023
1 parent 071d395 commit 2d9ab9c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 161 deletions.
76 changes: 0 additions & 76 deletions packages/e2ee/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/e2ee/src/sora_e2ee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const WORKER_SCRIPT = '__WORKER_SCRIPT__'

class SoraE2EE {
worker: Worker | null
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
onWorkerDisconnect: (() => any) | null

constructor() {
Expand Down
7 changes: 5 additions & 2 deletions packages/e2ee/src/worker/e2ee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ function removeDeriveKey(connectionId: string): void {
remoteDeriveKeyMap.delete(connectionId)
}

function getLatestSelfDeriveKey(): { connectionId: string; keyId: number; deriveKey: CryptoKey } {
function getLatestSelfDeriveKey(): {
connectionId: string
keyId: number
deriveKey: CryptoKey
} {
const deriveKey = selfDeriveKeyMap.get('latest')
if (!deriveKey) {
throw new Error('LATEST-SELF-DERIVEKEY-NOT_FOUND')
Expand Down Expand Up @@ -136,7 +140,6 @@ function silenceFrame(encodedFrame: Chunk): Chunk {
const newData = new ArrayBuffer(60)
const newUint8 = new Uint8Array(newData)

// prettier-ignore
newUint8.set([
0xb0, 0x05, 0x00, 0x9d, 0x01, 0x2a, 0xa0, 0x00, 0x5a, 0x00, 0x39, 0x03, 0x00, 0x00, 0x1c,
0x22, 0x16, 0x16, 0x22, 0x66, 0x12, 0x20, 0x04, 0x90, 0x40, 0x00, 0xc5, 0x01, 0xe0, 0x7c,
Expand Down
82 changes: 0 additions & 82 deletions packages/sdk/.eslintrc.json

This file was deleted.

0 comments on commit 2d9ab9c

Please sign in to comment.