From 08cd6983f4cf4b8d7f250069dec4793102de7984 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Thu, 6 Mar 2025 07:47:32 +0700 Subject: [PATCH] 1. Adjusted gitignore path 2. Formatted files --- apps/dev-tool/app/lib/connectivity-service.ts | 3 ++- package.json | 4 ++-- .../admin/src/components/admin-account-page.tsx | 13 ++++--------- packages/otp/src/server/server-actions.ts | 11 +++++++++-- tooling/eslint/base.js | 4 ++-- 5 files changed, 19 insertions(+), 16 deletions(-) diff --git a/apps/dev-tool/app/lib/connectivity-service.ts b/apps/dev-tool/app/lib/connectivity-service.ts index 96c7a3905..e50025b79 100644 --- a/apps/dev-tool/app/lib/connectivity-service.ts +++ b/apps/dev-tool/app/lib/connectivity-service.ts @@ -105,7 +105,8 @@ class ConnectivityService { if (data.length === 0) { return { status: 'error' as const, - message: 'No accounts found in Supabase Admin. The data may not be seeded. Please run `pnpm run supabase:web:reset` to reset the database.', + message: + 'No accounts found in Supabase Admin. The data may not be seeded. Please run `pnpm run supabase:web:reset` to reset the database.', }; } diff --git a/package.json b/package.json index 2acc40526..a3cd14b90 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "clean": "git clean -xdf node_modules dist .next", "clean:workspaces": "turbo clean", "dev": "cross-env FORCE_COLOR=1 turbo dev --parallel", - "format": "turbo format --cache-dir=.turbo --continue -- --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"./.gitignore\"", - "format:fix": "turbo format --cache-dir=.turbo --continue -- --write --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"./gitignore\"", + "format": "turbo format --cache-dir=.turbo --continue -- --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"../../.gitignore\"", + "format:fix": "turbo format --cache-dir=.turbo --continue -- --write --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"../../.gitignore\"", "lint": "turbo lint --cache-dir=.turbo --affected --continue -- --cache --cache-location \"node_modules/.cache/.eslintcache\" && manypkg check", "lint:fix": "turbo lint --cache-dir=.turbo --affected --continue -- --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" && manypkg fix", "typecheck": "turbo typecheck --affected --cache-dir=.turbo", diff --git a/packages/features/admin/src/components/admin-account-page.tsx b/packages/features/admin/src/components/admin-account-page.tsx index d71f26c5d..90be6d5ff 100644 --- a/packages/features/admin/src/components/admin-account-page.tsx +++ b/packages/features/admin/src/components/admin-account-page.tsx @@ -1,9 +1,4 @@ -import { - BadgeX, - Ban, - ShieldPlus, - VenetianMask, -} from 'lucide-react'; +import { BadgeX, Ban, ShieldPlus, VenetianMask } from 'lucide-react'; import { Tables } from '@kit/supabase/database'; import { getSupabaseServerAdminClient } from '@kit/supabase/server-admin-client'; @@ -258,9 +253,9 @@ async function SubscriptionsTable(props: { accountId: string }) { - This account does not currently have a subscription. - + + This account does not currently have a subscription. + } > {(subscription) => { diff --git a/packages/otp/src/server/server-actions.ts b/packages/otp/src/server/server-actions.ts index 0a53c249b..2e491b370 100644 --- a/packages/otp/src/server/server-actions.ts +++ b/packages/otp/src/server/server-actions.ts @@ -14,7 +14,12 @@ const SendOtpEmailSchema = z.object({ // Purpose of the OTP (e.g., 'email-verification', 'password-reset') purpose: z.string().min(1).max(1000), // how long the OTP should be valid for. Defaults to 1 hour. Max is 7 days. Min is 30 seconds. - expiresInSeconds: z.number().min(30).max(86400 * 7).default(3600).optional(), + expiresInSeconds: z + .number() + .min(30) + .max(86400 * 7) + .default(3600) + .optional(), }); /** @@ -35,7 +40,9 @@ export const sendOtpEmailAction = enhanceAction( // this is highly unlikely to happen, but we want to make sure the client-side code is correct in // sending the correct user email if (data.email !== email) { - throw new Error('User email does not match the email provided. This is likely an error in the client.'); + throw new Error( + 'User email does not match the email provided. This is likely an error in the client.', + ); } try { diff --git a/tooling/eslint/base.js b/tooling/eslint/base.js index e8a7af31c..4f1849095 100644 --- a/tooling/eslint/base.js +++ b/tooling/eslint/base.js @@ -17,8 +17,8 @@ export default tsEsLint.config( languageOptions: { parserOptions: { warnOnUnsupportedTypeScriptVersion: false, - } - } + }, + }, }, { rules: {