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
+1
View File
@@ -146,6 +146,7 @@ export default typescriptEslint.config(
'unicorn/no-non-function-verb-prefix': 'off',
'unicorn/prefer-minimal-ternary': 'off',
'unicorn/no-empty-file': 'off',
'unicorn/prefer-simple-condition-first': 'off',
// prefer the typescript-eslint type-aware version
'unicorn/require-array-sort-compare': 'off',
'@typescript-eslint/require-array-sort-compare': 'error',
+1 -1
View File
@@ -97,7 +97,7 @@
"eslint-plugin-better-tailwindcss": "^4.5.0",
"eslint-plugin-compat": "^7.0.0",
"eslint-plugin-svelte": "^3.12.4",
"eslint-plugin-unicorn": "^70.0.0",
"eslint-plugin-unicorn": "^72.0.0",
"factory.ts": "^1.4.1",
"globals": "^17.0.0",
"happy-dom": "^20.0.0",
@@ -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(() => {