mirror of
https://github.com/immich-app/immich.git
synced 2026-08-01 16:38:02 -07:00
chore(deps): update dependency eslint-plugin-unicorn to v70 - abandoned (#29684)
* chore(deps): update dependency eslint-plugin-unicorn to v70 * fix: linting --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
co-authored by
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Daniel Dietzler
parent
8061a2e5ff
commit
df970da59e
@@ -12,10 +12,7 @@ function isIPOrRange(value: string, options?: IsIPRangeOptions): boolean {
|
||||
if (isIPRange(value)) {
|
||||
return true;
|
||||
}
|
||||
if (!requireCIDR && isIP(value)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return !requireCIDR && isIP(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +60,7 @@ export function IsNotSiblingOf<
|
||||
TKey extends z.infer<ReturnType<TSchema['keyof']>> & keyof z.infer<TSchema>,
|
||||
>(_schema: TSchema, property: TKey, siblings: TKey[]) {
|
||||
type T = z.infer<TSchema>;
|
||||
const message = `${String(property)} cannot exist alongside ${siblings.join(' or ')}`;
|
||||
const message = `${property} cannot exist alongside ${siblings.join(' or ')}`;
|
||||
return z.custom<T>().refine(
|
||||
(data) => {
|
||||
if (data[property] === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user