Skip to content

Commit

Permalink
fix: circumvent eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Oct 26, 2023
1 parent a077d50 commit a9fea6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema/trans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9fea6d

Please sign in to comment.