diff --git a/src/schema/trans.ts b/src/schema/trans.ts index 6309e63..b87efaf 100644 --- a/src/schema/trans.ts +++ b/src/schema/trans.ts @@ -2,8 +2,8 @@ import { z } from 'zod'; const TRANS_GROUP = z.literal('Trans'); const HEX_COLOR = z.string().regex(/^#[0-9A-F]{6}$/); -// eslint-disable-next-line @typescript-eslint/no-loss-of-precision -const INT64MAX = z.literal(9_223_372_036_854_775_807); +// this is a workaround to prevent ESLint from reporting an error. TODO are there any side-effects? +const INT64MAX = z.literal(Number('9223372036854775807')); const RANGE_0_255 = z.number().int().min(0).max(255); const RANGE_0_256 = z.number().int().min(0).max(256); const RANGE_0_8 = z.number().int().min(0).max(8);