Skip to content

Commit 6f92fcb

Browse files
committed
chore(*): fixed linting and test errors
1 parent 1076606 commit 6f92fcb

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

packages/core/src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ export * from "./translations";
3030
// Detect production mode across different build systems (Vite, webpack/Next.js, etc.)
3131
const isDevelopment = typeof process !== "undefined" && process.env.NODE_ENV === "production";
3232

33-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3433
const isViteProduction =
35-
typeof import.meta !== "undefined" && (import.meta as any)?.env && (import.meta as any).env.PROD === true;
34+
typeof import.meta !== "undefined" &&
35+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
36+
(import.meta as any)?.env &&
37+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
38+
(import.meta as any).env.PROD === true;
3639

3740
// Check if in production mode
3841
const isProduction = isDevelopment || isViteProduction;

packages/react/src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ export * from "./hooks";
2727
// Detect production mode across different build systems (Vite, webpack/Next.js, etc.)
2828
const isNodeProduction = typeof process !== "undefined" && process.env.NODE_ENV === "production";
2929

30-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3130
const isViteProduction =
32-
typeof import.meta !== "undefined" && (import.meta as any)?.env && (import.meta as any).env.PROD === true;
33-
34-
// Check if in production mode
31+
typeof import.meta !== "undefined" &&
32+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
33+
(import.meta as any)?.env &&
34+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
35+
(import.meta as any).env.PROD === true;
3536

3637
// Check if in production mode
3738
const isProduction = isNodeProduction || isViteProduction;

packages/translations/src/mapping.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ describe("mapping.ts", () => {
7272
"userNotFound",
7373
"wrongPassword",
7474
"invalidEmail",
75+
"unverifiedEmail",
7576
"userDisabled",
77+
"invalidCredential",
7678
"networkRequestFailed",
7779
"tooManyRequests",
7880
"emailAlreadyInUse",

0 commit comments

Comments
 (0)