Skip to content

Commit 4633b90

Browse files
committed
Linting errors fix
1 parent b83e96e commit 4633b90

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

app/api/user/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function GET(request: Request) {
4343
try {
4444
const wallet = await getUserWallet(session.user.id);
4545
walletAddress = wallet.walletAddress;
46-
} catch (error) {
46+
} catch (_error) {
4747
// User doesn't have a wallet yet, that's ok
4848
walletAddress = null;
4949
}

components/workflows/user-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const UserMenu = () => {
136136
{session?.user?.email}
137137
</p>
138138
{walletAddress && (
139-
<p className="text-muted-foreground font-mono text-xs leading-none">
139+
<p className="font-mono text-muted-foreground text-xs leading-none">
140140
{walletAddress.slice(0, 6)}...{walletAddress.slice(-4)}
141141
</p>
142142
)}

lib/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { Environment, Para as ParaServer } from "@getpara/server-sdk";
12
import { betterAuth } from "better-auth";
23
import { drizzleAdapter } from "better-auth/adapters/drizzle";
34
import { anonymous, genericOAuth } from "better-auth/plugins";
45
import { eq } from "drizzle-orm";
5-
import { Para as ParaServer, Environment } from "@getpara/server-sdk";
66
import { db } from "./db";
77
import {
88
accounts,
@@ -221,7 +221,7 @@ export const auth = betterAuth({
221221
`[Para] ✓ Wallet created successfully: ${wallet.address}`
222222
);
223223
} catch (error) {
224-
console.error(`[Para] Failed to create wallet:`, error);
224+
console.error("[Para] Failed to create wallet:", error);
225225
// Don't throw - let signup succeed even if wallet creation fails
226226
}
227227
},

lib/encryption.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import crypto from "crypto";
1+
import crypto from "node:crypto";
22

3-
const ENCRYPTION_KEY = process.env.WALLET_ENCRYPTION_KEY!;
3+
const ENCRYPTION_KEY = process.env.WALLET_ENCRYPTION_KEY;
44
const ALGORITHM = "aes-256-gcm";
55

66
if (!ENCRYPTION_KEY || ENCRYPTION_KEY.length !== 64) {
@@ -30,9 +30,7 @@ export function encryptUserShare(userShare: string): string {
3030
const authTag = cipher.getAuthTag();
3131

3232
// Format: iv:authTag:encryptedData
33-
return (
34-
iv.toString("hex") + ":" + authTag.toString("hex") + ":" + encrypted
35-
);
33+
return `${iv.toString("hex")}:${authTag.toString("hex")}:${encrypted}`;
3634
}
3735

3836
/**

lib/para/wallet-helpers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import "server-only";
2-
import { db } from "@/lib/db";
3-
import { paraWallets } from "@/lib/db/schema";
4-
import { eq } from "drizzle-orm";
5-
import { Para as ParaServer, Environment } from "@getpara/server-sdk";
62
import { ParaEthersSigner } from "@getpara/ethers-v6-integration";
3+
import { Environment, Para as ParaServer } from "@getpara/server-sdk";
4+
import { eq } from "drizzle-orm";
75
import { ethers } from "ethers";
6+
import { db } from "@/lib/db";
7+
import { paraWallets } from "@/lib/db/schema";
88
import { decryptUserShare } from "@/lib/encryption";
99

1010
/**

scripts/discover-plugins.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export {
157157
async function updateReadme(): Promise<void> {
158158
// Import registry first, then plugins
159159
const { getAllIntegrations } = await import("../plugins/registry");
160-
160+
161161
// Dynamically import the plugins to populate the registry
162162
// This works because we already generated plugins/index.ts above
163163
try {
@@ -598,18 +598,20 @@ async function generateStepRegistry(): Promise<void> {
598598
// Import registry FIRST - this is critical! Plugins need the registry to exist before they register
599599
const registryModule = await import("../plugins/registry");
600600
const { getAllIntegrations, computeActionId } = registryModule;
601-
601+
602602
// Import plugins to trigger registration (they will use the registry we just imported)
603603
try {
604604
await import("../plugins/index");
605605
} catch (error) {
606606
console.error("Error importing plugins:", error);
607607
throw error;
608608
}
609-
609+
610610
const { LEGACY_ACTION_MAPPINGS } = await import("../plugins/legacy-mappings");
611611
const integrations = getAllIntegrations();
612-
console.log(`[generateStepRegistry] Found ${integrations.length} integration(s) with ${integrations.reduce((sum, i) => sum + i.actions.length, 0)} total action(s)`);
612+
console.log(
613+
`[generateStepRegistry] Found ${integrations.length} integration(s) with ${integrations.reduce((sum, i) => sum + i.actions.length, 0)} total action(s)`
614+
);
613615

614616
// Collect all action -> step mappings
615617
const stepEntries: Array<{

0 commit comments

Comments
 (0)