mirror of
https://github.com/immich-app/services.git
synced 2026-09-30 13:23:10 +08:00
chore(deps): update dependency eslint-plugin-unicorn to v73 (#117)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
co-authored by
Daniel Dietzler
parent
fad37b22a0
commit
d72fc70572
@@ -7,7 +7,9 @@ import { ResourceCacheService } from './resource-cache.js';
|
|||||||
import type { CollectionResult, DatasetQuery, DatasetRow } from './types.js';
|
import type { CollectionResult, DatasetQuery, DatasetRow } from './types.js';
|
||||||
|
|
||||||
export interface CollectorOptions {
|
export interface CollectorOptions {
|
||||||
/** Cloudflare analytics data lags by a few minutes; this offsets the window end. */
|
/**
|
||||||
|
Cloudflare analytics data lags by a few minutes; this offsets the window end.
|
||||||
|
*/
|
||||||
lagMs?: number;
|
lagMs?: number;
|
||||||
windowMs?: number;
|
windowMs?: number;
|
||||||
now?: () => Date;
|
now?: () => Date;
|
||||||
@@ -398,7 +400,9 @@ function errorTag(error: unknown): string {
|
|||||||
return 'unknown';
|
return 'unknown';
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Truncate a string for use as a metric tag value. */
|
/**
|
||||||
|
Truncate a string for use as a metric tag value.
|
||||||
|
*/
|
||||||
function truncateTag(value: string, maxLength: number): string {
|
function truncateTag(value: string, maxLength: number): string {
|
||||||
if (value.length <= maxLength) {
|
if (value.length <= maxLength) {
|
||||||
return value;
|
return value;
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ class RecordingProvider implements IMetricsProviderRepository {
|
|||||||
this.metrics.push(metric);
|
this.metrics.push(metric);
|
||||||
}
|
}
|
||||||
flush() {
|
flush() {
|
||||||
/* noop */
|
/*
|
||||||
|
noop
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,9 @@ describe('CloudflareMetricsRepository', () => {
|
|||||||
this.pushed.push(metric);
|
this.pushed.push(metric);
|
||||||
}
|
}
|
||||||
flush() {
|
flush() {
|
||||||
/* noop */
|
/*
|
||||||
|
noop
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -98,7 +98,9 @@ export class FakeGraphQLClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** `FakeGraphQLClient` duck-typed as a `CloudflareGraphQLClient` for DI. */
|
/**
|
||||||
|
`FakeGraphQLClient` duck-typed as a `CloudflareGraphQLClient` for DI.
|
||||||
|
*/
|
||||||
export function asGraphQLClient(fake: FakeGraphQLClient): CloudflareGraphQLClient {
|
export function asGraphQLClient(fake: FakeGraphQLClient): CloudflareGraphQLClient {
|
||||||
return fake as unknown as CloudflareGraphQLClient;
|
return fake as unknown as CloudflareGraphQLClient;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ interface User {
|
|||||||
username: string;
|
username: string;
|
||||||
id: number;
|
id: number;
|
||||||
};
|
};
|
||||||
/** @deprecated Use `roles` instead */
|
/**
|
||||||
|
@deprecated Use `roles` instead
|
||||||
|
*/
|
||||||
role?: Role;
|
role?: Role;
|
||||||
roles?: Role[];
|
roles?: Role[];
|
||||||
dev?: boolean;
|
dev?: boolean;
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export default typescriptEslint.config([
|
|||||||
'unicorn/prefer-structured-clone': 'off',
|
'unicorn/prefer-structured-clone': 'off',
|
||||||
'unicorn/no-for-loop': 'off',
|
'unicorn/no-for-loop': 'off',
|
||||||
'unicorn/consistent-class-member-order': 'off',
|
'unicorn/consistent-class-member-order': 'off',
|
||||||
|
'unicorn/consistent-boolean-name': 'off',
|
||||||
'unicorn/no-computed-property-existence-check': 'off',
|
'unicorn/no-computed-property-existence-check': 'off',
|
||||||
'unicorn/max-nested-calls': ['error', { max: 4 }],
|
'unicorn/max-nested-calls': ['error', { max: 4 }],
|
||||||
'unicorn/no-break-in-nested-loop': 'off',
|
'unicorn/no-break-in-nested-loop': 'off',
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@
|
|||||||
"eslint": "^10.0.0",
|
"eslint": "^10.0.0",
|
||||||
"eslint-config-prettier": "^10.0.1",
|
"eslint-config-prettier": "^10.0.1",
|
||||||
"eslint-plugin-prettier": "^5.5.4",
|
"eslint-plugin-prettier": "^5.5.4",
|
||||||
"eslint-plugin-unicorn": "^72.0.0",
|
"eslint-plugin-unicorn": "^73.0.0",
|
||||||
"globals": "^17.0.0",
|
"globals": "^17.0.0",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-organize-imports": "^4.2.0",
|
"prettier-plugin-organize-imports": "^4.2.0",
|
||||||
|
|||||||
Generated
+5
-5
@@ -36,8 +36,8 @@ importers:
|
|||||||
specifier: ^5.5.4
|
specifier: ^5.5.4
|
||||||
version: 5.5.6(eslint-config-prettier@10.1.8(eslint@10.8.0(supports-color@10.2.2)))(eslint@10.8.0(supports-color@10.2.2))(prettier@3.9.6)
|
version: 5.5.6(eslint-config-prettier@10.1.8(eslint@10.8.0(supports-color@10.2.2)))(eslint@10.8.0(supports-color@10.2.2))(prettier@3.9.6)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: ^72.0.0
|
specifier: ^73.0.0
|
||||||
version: 72.0.0(eslint@10.8.0(supports-color@10.2.2))
|
version: 73.0.0(eslint@10.8.0(supports-color@10.2.2))
|
||||||
globals:
|
globals:
|
||||||
specifier: ^17.0.0
|
specifier: ^17.0.0
|
||||||
version: 17.8.0
|
version: 17.8.0
|
||||||
@@ -1209,8 +1209,8 @@ packages:
|
|||||||
eslint-config-prettier:
|
eslint-config-prettier:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
eslint-plugin-unicorn@72.0.0:
|
eslint-plugin-unicorn@73.0.0:
|
||||||
resolution: {integrity: sha512-hqO6ksoOHO+ZhdseTuKRVQbx9U7PRO/cv8qAR1mctwzdVO2hYud8uS9luAhp43RJgziYgHAph8eHyipT8GL0ng==}
|
resolution: {integrity: sha512-V0YatLe9nkGhXEXKe2Qljb1EY0sJHwDV0HUF1NKFwtsHh/fU7qGHDgv+6fchzZcgU2/7noHo2gdjnmo0P2uDPw==}
|
||||||
engines: {node: '>=22'}
|
engines: {node: '>=22'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: '>=10.4'
|
eslint: '>=10.4'
|
||||||
@@ -2802,7 +2802,7 @@ snapshots:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
eslint-config-prettier: 10.1.8(eslint@10.8.0(supports-color@10.2.2))
|
eslint-config-prettier: 10.1.8(eslint@10.8.0(supports-color@10.2.2))
|
||||||
|
|
||||||
eslint-plugin-unicorn@72.0.0(eslint@10.8.0(supports-color@10.2.2)):
|
eslint-plugin-unicorn@73.0.0(eslint@10.8.0(supports-color@10.2.2)):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/eslint-utils': 4.10.1(eslint@10.8.0(supports-color@10.2.2))
|
'@eslint-community/eslint-utils': 4.10.1(eslint@10.8.0(supports-color@10.2.2))
|
||||||
'@eslint/css-tree': 4.0.5
|
'@eslint/css-tree': 4.0.5
|
||||||
|
|||||||
Reference in New Issue
Block a user