diff --git a/packages/e2ee/.eslintrc.json b/packages/e2ee/.eslintrc.json deleted file mode 100644 index f6789385..00000000 --- a/packages/e2ee/.eslintrc.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json", - "env": { - "browser": true, - "commonjs": true, - "es6": true - }, - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:prettier/recommended", - "prettier" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "sourceType": "module" - }, - "plugins": ["@typescript-eslint", "prettier"], - "globals": { - "SORA_JS_SDK_VERSION": true - }, - "rules": { - "@typescript-eslint/ban-ts-comment": "off", - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/no-unused-vars": [ - "error", - { - "vars": "all", - "args": "all", - "argsIgnorePattern": "^_" - } - ], - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "import", - "format": ["camelCase", "UPPER_CASE", "PascalCase"] - }, - { - "selector": "default", - "format": ["camelCase"] - }, - { - "selector": "class", - "format": ["PascalCase"] - }, - { - "selector": "interface", - "format": ["PascalCase"] - }, - { - "selector": "typeAlias", - "format": ["PascalCase"] - }, - { - "selector": "objectLiteralProperty", - "format": ["camelCase", "snake_case"] - }, - { - "selector": "typeProperty", - "format": null - }, - { - "selector": "variable", - "format": ["camelCase", "UPPER_CASE", "PascalCase"] - }, - { - "selector": "parameter", - "format": ["camelCase"], - "leadingUnderscore": "allow" - } - ], - "curly": "error" - } -} diff --git a/packages/e2ee/src/sora_e2ee.ts b/packages/e2ee/src/sora_e2ee.ts index c612abfb..818cf9ea 100644 --- a/packages/e2ee/src/sora_e2ee.ts +++ b/packages/e2ee/src/sora_e2ee.ts @@ -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: onWorkerDisconnect: (() => any) | null constructor() { diff --git a/packages/e2ee/src/worker/e2ee.ts b/packages/e2ee/src/worker/e2ee.ts index 947b5bfb..0f28b4ab 100644 --- a/packages/e2ee/src/worker/e2ee.ts +++ b/packages/e2ee/src/worker/e2ee.ts @@ -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') @@ -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, diff --git a/packages/sdk/.eslintrc.json b/packages/sdk/.eslintrc.json deleted file mode 100644 index 385329fb..00000000 --- a/packages/sdk/.eslintrc.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json", - "env": { - "browser": true, - "commonjs": true, - "es6": true - }, - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended-requiring-type-checking", - "plugin:prettier/recommended", - "prettier" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "sourceType": "module", - "project": ["./tsconfig.json"] - }, - "plugins": ["@typescript-eslint", "prettier"], - "globals": { - "SORA_JS_SDK_VERSION": true - }, - "rules": { - "@typescript-eslint/ban-ts-comment": "off", - "@typescript-eslint/no-empty-function": "off", - "@typescript-eslint/no-unused-vars": [ - "error", - { - "vars": "all", - "args": "all", - "argsIgnorePattern": "^_" - } - ], - "@typescript-eslint/naming-convention": [ - "error", - { - "selector": "import", - "format": ["camelCase", "UPPER_CASE", "PascalCase"] - }, - { - "selector": "default", - "format": ["camelCase"] - }, - { - "selector": "class", - "format": ["PascalCase"] - }, - { - "selector": "interface", - "format": ["PascalCase"] - }, - { - "selector": "typeAlias", - "format": ["PascalCase"] - }, - { - "selector": "objectLiteralProperty", - "format": ["camelCase", "snake_case"] - }, - { - "selector": "typeProperty", - "format": null - }, - { - "selector": "parameter", - "format": ["camelCase"], - "leadingUnderscore": "allow" - }, - { - "selector": "typeParameter", - "format": ["PascalCase"] - }, - { - "selector": "variable", - "format": ["camelCase", "UPPER_CASE"] - } - ], - "curly": "error" - } -}