chore(root): migrate to biome

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-16 12:20:40 +02:00
parent 1f6e198336
commit 32e91959f6
383 changed files with 1943 additions and 3085 deletions

View File

@@ -2,7 +2,7 @@ import type { IServiceProfile } from '@openpanel/db';
export function getProfileName(
profile: IServiceProfile | undefined | null,
short = true
short = true,
) {
if (!profile) {
return '';
@@ -10,7 +10,7 @@ export function getProfileName(
if (!profile.isExternal) {
if (short) {
return profile.id.slice(0, 4) + '...' + profile.id.slice(-4);
return `${profile.id.slice(0, 4)}...${profile.id.slice(-4)}`;
}
return profile.id;
}

View File

@@ -1 +1 @@
export * from '@openpanel/common/src/math'
export * from '@openpanel/common/src/math';

View File

@@ -2,5 +2,5 @@ export function truncate(str: string, len: number) {
if (str.length <= len) {
return str;
}
return str.slice(0, len) + '...';
return `${str.slice(0, len)}...`;
}