From 18a162c6d70eb96196a1dbe2294f21f2510ee443 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sat, 28 Jun 2025 23:01:14 +0200 Subject: [PATCH] Fix remaining eslint errors. --- src/model/model.ts | 1 + src/model/types/type.ts | 6 +++++- vite.config.ts | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/model/model.ts b/src/model/model.ts index b67d2e7..4c3b3d4 100644 --- a/src/model/model.ts +++ b/src/model/model.ts @@ -29,6 +29,7 @@ export type SerializedModel> = { * This is an experimental serialized model type declaration. * @deprecated */ +// eslint-disable-next-line @typescript-eslint/no-unused-vars type ExperimentalSerializedModel< T extends object, Shape extends ModelShape, diff --git a/src/model/types/type.ts b/src/model/types/type.ts index 05ec6db..0423f83 100644 --- a/src/model/types/type.ts +++ b/src/model/types/type.ts @@ -32,7 +32,10 @@ export abstract class Type { * Reset the difference between the original value and the current one. * @param value Value for which reset diff data. */ - resetDiff(value: ModelType | null | undefined): void { + resetDiff( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + value: ModelType | null | undefined, + ): void { // By default, nothing to do. } @@ -77,6 +80,7 @@ export abstract class Type { applyPatch( currentValue: T | null | undefined, patchValue: SerializedType | null | undefined, + // eslint-disable-next-line @typescript-eslint/no-unused-vars updateOriginals: boolean, ): T | null | undefined { return this.deserialize(patchValue) as T; diff --git a/vite.config.ts b/vite.config.ts index 21cdd47..2830812 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,9 @@ -import {ConfigEnv, defineConfig, UserConfig} from "vite"; +import {defineConfig, UserConfig} from "vite"; import dts from "vite-plugin-dts"; // https://vitejs.dev/config/ -export default defineConfig(({mode}: ConfigEnv): UserConfig => { +export default defineConfig((): UserConfig => { return { build: { outDir: "lib",