Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPhamous committed Feb 14, 2025
1 parent 8f36112 commit 1fd2df0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
"typescript": "^5.6.2"
},
"version": "0.1.39"
}
}
4 changes: 2 additions & 2 deletions src/helpers/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function loadFeatureFlags(): Promise<FeatureFlagCache> {

export async function getCachedFeatureFlag(
feature: string,
accountId: string
accountId: string,
): Promise<CachedFeatureFlag | null> {
const cache = await loadFeatureFlags();
const key = `${accountId}:${feature}`;
Expand All @@ -65,7 +65,7 @@ export async function getCachedFeatureFlag(
export async function cacheFeatureFlag(
feature: string,
accountId: string,
value: boolean
value: boolean,
): Promise<void> {
const cache = await loadFeatureFlags();
const key = `${accountId}:${feature}`;
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { registerDev } from "./lib/dev.ts";
import { registerLogin } from "./lib/login.ts";
import { registerMe } from "./lib/me.ts";
import { registerOrders } from "./lib/orders/index.tsx";
import { IS_TRACKING_DISABLED, analytics } from "./lib/posthog.ts";
import { analytics, IS_TRACKING_DISABLED } from "./lib/posthog.ts";
import { registerSell } from "./lib/sell.ts";
import { registerTokens } from "./lib/tokens.ts";
import { registerScale } from "./lib/updown.tsx";
Expand Down Expand Up @@ -71,7 +71,7 @@ const main = async () => {
}
}

program.exitOverride(error => {
program.exitOverride((error) => {
let isError = true;

switch (error.code) {
Expand All @@ -91,8 +91,8 @@ const main = async () => {
const nextArg = arr[i + 1];
if (nextArg && !nextArg.startsWith("-")) {
(acc as Record<string, string | number | boolean>)[key] = isNaN(
Number(nextArg)
)
Number(nextArg),
)
? nextArg
: Number(nextArg);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/posthog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const postHogClient = new PostHog(
host: "https://us.posthog.com",
flushAt: 1,
flushInterval: 0,
}
},
);
// Uncomment this out to see Posthog debugging logs.
// postHogClient.debug();
Expand Down Expand Up @@ -89,7 +89,7 @@ export const isFeatureEnabled = async (feature: FeatureFlags) => {
// If not in cache or expired, fetch from PostHog
const result = await postHogClient.isFeatureEnabled(
feature,
exchangeAccountId
exchangeAccountId,
);

// Cache the result (PostHog returns undefined if there's an error, default to false)
Expand Down
2 changes: 1 addition & 1 deletion src/types/deno.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ declare namespace Deno {
function readTextFile(path: string): Promise<string>;
function mkdir(
path: string,
options?: { recursive?: boolean }
options?: { recursive?: boolean },
): Promise<void>;
}

0 comments on commit 1fd2df0

Please sign in to comment.