Skip to content

Commit d5022d8

Browse files
committed
lint fixes
1 parent c1f2f98 commit d5022d8

29 files changed

Lines changed: 49 additions & 196 deletions

apps/webapp/app/components/dashboard-agent/demo/fixtures/page-context.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,4 @@ export const demoPromptsAfterDismissal: SuggestedPrompt[] = demoPromptSets.faile
248248
.filter((p) => !demoDismissedPromptIds.includes(p.id))
249249
.slice(0, SUGGESTED_PROMPT_CAP);
250250

251-
const demoPrompts = {
252-
sets: demoPromptSets,
253-
defaults: DEFAULT_PROMPTS,
254-
dismissedIds: demoDismissedPromptIds,
255-
afterDismissal: demoPromptsAfterDismissal,
256-
cap: SUGGESTED_PROMPT_CAP,
257-
} as const;
251+

apps/webapp/app/components/dashboard-agent/report-sparkline.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { Bar, Cell, type TooltipProps } from "recharts";
1919
import {
2020
REPORT_LABELS,
2121
reportFooterStyle,
22-
type ReportFooterStyle,
2322
type ReportTone,
2423
} from "~/presenters/v3/reports/report-layout";
2524
import { ActivityBarChart } from "~/components/metrics/ActivityBarChart";
@@ -318,7 +317,7 @@ export function ReportNoteBlock({ label, children }: { label: string; children:
318317
* because it is phrased differently when it is the only thing on offer.
319318
*/
320319
export const FOOTER_WATCH_CODE = "watch_recovery";
321-
const FOOTER_WATCH_ONLY_CODE = "watch_recovery_only";
320+
322321

323322
/** A dimmed line that accompanies a row entry. */
324323
const FOOTER_NOTE_LINES: Record<string, string> = {

apps/webapp/app/components/navigation/sideMenuTypes.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ export const SIDE_MENU_POPOVER_ITEM_ICON = "h-5 w-5 text-text-dimmed";
2020
export const SIDE_MENU_POPOVER_ITEM_LABEL = "text-[0.90625rem] font-medium tracking-[-0.01em]";
2121

2222
/** Default top-to-bottom order of the customizable side menu sections. */
23-
const DEFAULT_SECTION_ORDER: SideMenuSectionId[] = [
24-
"favorites",
25-
"ai",
26-
"metrics",
27-
"deployments",
28-
"manage",
29-
];
23+
3024

3125
/**
3226
* Order entries by a saved preference. Entries missing from the saved order (e.g. a section or

apps/webapp/app/components/primitives/SheetV3.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Sheet = SheetPrimitive.Root;
88

99
const SheetTrigger = SheetPrimitive.Trigger;
1010

11-
const SheetClose = SheetPrimitive.Close;
11+
1212

1313
const SheetPortal = SheetPrimitive.Portal;
1414

apps/webapp/app/components/primitives/Table.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -513,30 +513,7 @@ export const CopyableTableCell = forwardRef<HTMLTableCellElement, CopyableTableC
513513
}
514514
);
515515

516-
const TableCellChevron = forwardRef<
517-
HTMLTableCellElement,
518-
{
519-
className?: string;
520-
to?: string;
521-
children?: ReactNode;
522-
isSticky?: boolean;
523-
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
524-
}
525-
>(({ className, to, children, isSticky, onClick }, ref) => {
526-
return (
527-
<TableCell
528-
className={className}
529-
isSticky={isSticky}
530-
to={to}
531-
onClick={onClick}
532-
ref={ref}
533-
alignment="right"
534-
>
535-
{children}
536-
<ChevronRightIcon className="size-4 text-text-dimmed transition group-hover:text-text-bright" />
537-
</TableCell>
538-
);
539-
});
516+
540517

541518
export const TableCellMenu = forwardRef<
542519
HTMLTableCellElement,

apps/webapp/app/components/primitives/charts/Chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const ChartTooltipContent = React.forwardRef<
252252
);
253253
ChartTooltipContent.displayName = "ChartTooltip";
254254

255-
const ChartLegend = RechartsPrimitive.Legend;
255+
256256

257257
type ExtendedLegendPayload = Parameters<
258258
NonNullable<RechartsPrimitive.LegendProps["formatter"]>

apps/webapp/app/components/runs/v3/TaskRunAttemptStatus.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Spinner } from "~/components/primitives/Spinner";
1212
import { TaskRunAttemptStatus } from "~/database-types";
1313
import { cn } from "~/utils/cn";
1414

15-
const allTaskRunAttemptStatuses = Object.values(TaskRunAttemptStatus) as TaskRunAttemptStatusType[];
15+
1616

1717
export type ExtendedTaskAttemptStatus = TaskRunAttemptStatusType | "ENQUEUED";
1818

apps/webapp/app/consts.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
const LIVE_ENVIRONMENT = "live";
2-
const DEV_ENVIRONMENT = "development";
3-
const MAX_LIVE_PROJECTS = 1;
4-
const DEFAULT_MAX_CONCURRENT_RUNS = 10;
5-
const MAX_CONCURRENT_RUNS_LIMIT = 20;
6-
const PREPROCESS_RETRY_LIMIT = 2;
7-
const EXECUTE_JOB_RETRY_LIMIT = 10;
8-
const MAX_RUN_YIELDED_EXECUTIONS = 100;
9-
const RUN_CHUNK_EXECUTION_BUFFER = 350;
10-
const MAX_RUN_CHUNK_EXECUTION_LIMIT = 120000; // 2 minutes
11-
const VERCEL_RESPONSE_TIMEOUT_STATUS_CODES = [408, 504];
1+
2+
3+
4+
5+
6+
7+
8+
9+
10+
// 2 minutes
11+
1212
export const MAX_BATCH_TRIGGER_ITEMS = 100;
1313
export const MAX_API_KEY_TASK_IDENTIFIERS = 10;
14-
const MAX_TASK_RUN_ATTEMPTS = 250;
14+
1515
export const BULK_ACTION_RUN_LIMIT = 250;
16-
const MAX_JOB_RUN_EXECUTION_COUNT = 250;
16+

apps/webapp/app/db.server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,9 +1142,7 @@ function redactUrlSecrets(hrefOrUrl: string | URL) {
11421142

11431143
export type { PrismaClient } from "@trigger.dev/database";
11441144

1145-
const PrismaErrorSchema = z.object({
1146-
code: z.string(),
1147-
});
1145+
11481146

11491147
function getDatabaseSchema() {
11501148
if (!isValidDatabaseUrl(env.DATABASE_URL)) {

apps/webapp/app/models/projectAlert.server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ export const ProjectAlertEmailProperties = z.object({
1515

1616
export type ProjectAlertEmailProperties = z.infer<typeof ProjectAlertEmailProperties>;
1717

18-
const DeleteProjectAlertChannel = z.object({
19-
id: z.string(),
20-
});
18+
2119

2220
export const ProjectAlertSlackProperties = z.object({
2321
channelId: z.string(),

0 commit comments

Comments
 (0)