chore: fix linting and build errors
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 5s
Build & Deploy / 🧪 QA (push) Failing after 1m31s
Build & Deploy / 🏗️ Build (push) Failing after 3m51s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-17 23:48:52 +01:00
parent 786d35010b
commit 3eccff42e4
33 changed files with 303 additions and 66 deletions

View File

@@ -2,7 +2,7 @@
* Analytics interfaces - decoupled contracts
*/
/* eslint-disable no-unused-vars */
export interface AnalyticsEvent {
name: string;

View File

@@ -4,7 +4,7 @@ import * as path from "node:path";
import { existsSync } from "node:fs";
import * as crypto from "node:crypto";
/* eslint-disable no-unused-vars */
export class FileCacheAdapter implements CacheAdapter {
private cacheDir: string;

View File

@@ -3,9 +3,9 @@
*/
export interface CacheAdapter {
get<T>(key: string): Promise<T | null>;
set<T>(key: string, value: T, ttl?: number): Promise<void>;
del(key: string): Promise<void>;
get<T>(_key: string): Promise<T | null>;
set<T>(_key: string, _value: T, _ttl?: number): Promise<void>;
del(_key: string): Promise<void>;
clear(): Promise<void>;
}

View File

@@ -14,11 +14,11 @@ export interface ErrorContext {
}
export interface ErrorTrackingAdapter {
captureException(error: any, context?: ErrorContext): void;
captureMessage(message: string, context?: ErrorContext): void;
setUser(user: ErrorContext['user']): void;
setTag(key: string, value: string): void;
setExtra(key: string, value: any): void;
captureException(_error: any, _context?: ErrorContext): void;
captureMessage(_message: string, _context?: ErrorContext): void;
setUser(_user: ErrorContext['user']): void;
setTag(_key: string, _value: string): void;
setExtra(_key: string, _value: any): void;
}
export interface ErrorTrackingConfig {

View File

@@ -11,11 +11,11 @@ import { getImgproxyUrl } from "./imgproxy";
export default function imgproxyLoader({
src,
width,
quality,
_quality,
}: {
src: string;
width: number;
quality?: number;
_quality?: number;
}) {
// We use the width provided by Next.js for responsive images
// Height is set to 0 to maintain aspect ratio