chore(deps): update dependency eslint-plugin-unicorn to v72 (#30092)

Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot]
2026-07-21 15:33:46 +02:00
committed by GitHub
co-authored by Daniel Dietzler
parent ce022233ae
commit aa08dad1f5
27 changed files with 144 additions and 149 deletions
@@ -17,7 +17,7 @@
continue;
}
const [group] = permission.split('.');
const [group] = permission.split('.', 1);
if (!Object.hasOwn(permissions, group)) {
permissions[group] = [];
}
+1 -1
View File
@@ -50,7 +50,7 @@
}
if (isFirefox && ref) {
ref.decode().then(completeLoad, completeLoad);
ref.decode().then(completeLoad).catch(completeLoad);
return;
}
@@ -35,7 +35,7 @@
}
if (isRotated) {
let [width, height] = ratio.value.split(':');
let [width, height] = ratio.value.split(':', 2);
return `${height}:${width}`;
}
return ratio.value;
@@ -5,7 +5,7 @@ import { describe } from 'vitest';
import FormatMessage from '$lib/elements/FormatMessage.svelte';
import FormatTagB from '$lib/elements/__test__/FormatTagB.svelte';
const getSanitizedHTML = (container: HTMLElement) => container.innerHTML.replaceAll('<!---->', '');
const getSanitizedHTML = (container: HTMLElement) => container.getHTML().replaceAll('<!---->', '');
describe('FormatMessage component', () => {
beforeAll(async () => {
+1 -1
View File
@@ -124,7 +124,7 @@ class AuthManager {
}
for (const cookie of document.cookie.split('; ')) {
const [name] = cookie.split('=');
const [name] = cookie.split('=', 1);
if (name === 'immich_is_authenticated') {
return true;
}
@@ -834,7 +834,7 @@ class TransformManager implements EditToolManager {
return;
}
const [widthRatio, heightRatio] = aspectRatio.split(':');
const [widthRatio, heightRatio] = aspectRatio.split(':', 2);
this.setAspectRatio(`${heightRatio}:${widthRatio}`);
}
@@ -281,8 +281,9 @@
};
afterNavigate(({ from, to }) => {
memoryManager.ready().then(
() => {
memoryManager
.ready()
.then(() => {
let target;
if (to?.params?.assetId) {
target = to;
@@ -294,11 +295,10 @@
init(target);
initPlayer();
},
(error) => {
})
.catch((error) => {
console.error(`Error loading memories: ${error}`);
},
);
});
});
$effect(() => {