From 3111762c55061dc08a0e3adc9de69e5c8efbf6fd Mon Sep 17 00:00:00 2001 From: Emi Date: Fri, 16 Jun 2023 16:08:36 +0200 Subject: [PATCH] Fix eslint in common package --- packages/common/src/channelAddress.ts | 2 +- packages/common/src/process.ts | 2 +- packages/common/src/sortPeers.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/common/src/channelAddress.ts b/packages/common/src/channelAddress.ts index c9f993d7d5..4e923e61fe 100644 --- a/packages/common/src/channelAddress.ts +++ b/packages/common/src/channelAddress.ts @@ -1,6 +1,6 @@ import crypto from 'crypto' -export const generateChannelId = (channelName: String) => +export const generateChannelId = (channelName: string) => `${channelName}_${crypto.randomBytes(16).toString('hex')}` export const getChannelNameFormChannelId = (channelId: string) => { diff --git a/packages/common/src/process.ts b/packages/common/src/process.ts index 0b65a0cd5d..f3cd9ca3f5 100644 --- a/packages/common/src/process.ts +++ b/packages/common/src/process.ts @@ -1,4 +1,4 @@ -import { SupportedPlatform } from '@quiet/types' +import { type SupportedPlatform } from '@quiet/types' export const hangingBackendProcessCommand = ({ backendBundlePath, diff --git a/packages/common/src/sortPeers.ts b/packages/common/src/sortPeers.ts index 0bb8860791..67c971b21f 100644 --- a/packages/common/src/sortPeers.ts +++ b/packages/common/src/sortPeers.ts @@ -1,4 +1,4 @@ -import { NetworkStats } from '@quiet/types' +import { type NetworkStats } from '@quiet/types' import { isDefined } from './helpers' /**