mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Switch from eslint to oxlint
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
@@ -134,7 +134,7 @@ function toProtobufSession(
|
||||
if (!senderBaseKey) {
|
||||
throw new Error('toProtobufSession: No sender base key!');
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const senderChain = (session as any)[senderBaseKey] as ChainType | undefined;
|
||||
if (!senderChain) {
|
||||
throw new Error(
|
||||
@@ -169,7 +169,7 @@ function toProtobufSession(
|
||||
throw new Error('toProtobufSession: No receiver base key!');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const firstReceiverChain = (session as any)[firstReceiverChainBaseKey] as
|
||||
| ChainType
|
||||
| undefined;
|
||||
@@ -207,7 +207,7 @@ function toProtobufSession(
|
||||
throw new Error('toProtobufSession: No base key for old receiver chain!');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const chain = (session as any)[baseKey] as ChainType | undefined;
|
||||
if (!chain) {
|
||||
throw new Error(
|
||||
@@ -323,7 +323,7 @@ function translateMessageKey(key: Uint8Array<ArrayBuffer>) {
|
||||
}
|
||||
|
||||
function binaryToUint8Array(
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
object: any,
|
||||
path: string,
|
||||
length: number
|
||||
@@ -347,7 +347,7 @@ function binaryToUint8Array(
|
||||
return buffer;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
function getInteger(object: any, path: string): number {
|
||||
const target = get(object, path);
|
||||
if (target == null) {
|
||||
|
||||
Reference in New Issue
Block a user