Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: frontend lint

adilson739f9437b4b4
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TriggerDevSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TriggerDevSyncFields.tsx
index 9f0b8be87a..615653ce2b 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TriggerDevSyncFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/TriggerDevSyncFields.tsx
@@ -63,7 +63,8 @@ export const TriggerDevSyncFields = () => {
if (!projects) return [];
const byId = new Map<string, TTriggerDevOrganization>();
projects.forEach((project) => {
- if (!byId.has(project.organization.id)) byId.set(project.organization.id, project.organization);
+ if (!byId.has(project.organization.id))
+ byId.set(project.organization.id, project.organization);
});
return [...byId.values()].sort((a, b) => a.name.localeCompare(b.name));
}, [projects]);
@@ -75,8 +76,7 @@ export const TriggerDevSyncFields = () => {
if (project) setSelectedOrgId(project.organization.id);
}, [projectRef, projects, selectedOrgId]);
- const selectedOrganization =
- organizationOptions.find((org) => org.id === selectedOrgId) ?? null;
+ const selectedOrganization = organizationOptions.find((org) => org.id === selectedOrgId) ?? null;
const orgProjects = useMemo(
() => projects?.filter((project) => project.organization.id === selectedOrgId) ?? [],
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/TriggerDevSyncOptionsFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/TriggerDevSyncOptionsFields.tsx
index c543c1e816..de4676846e 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/TriggerDevSyncOptionsFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncOptionsFields/TriggerDevSyncOptionsFields.tsx
@@ -25,8 +25,8 @@ export const TriggerDevSyncOptionsFields = () => {
<FieldContent>
<Label htmlFor="trigger-dev-secret">Mark variables as secret</Label>
<FieldDescription>
- When enabled, synced variables are marked as secret (redacted) environment
- variables in Trigger.dev.
+ When enabled, synced variables are marked as secret (redacted) environment variables
+ in Trigger.dev.
</FieldDescription>
</FieldContent>
<Switch
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/TriggerDevSyncReviewFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/TriggerDevSyncReviewFields.tsx
index 0f17dab97f..bab0cf12c2 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/TriggerDevSyncReviewFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/TriggerDevSyncReviewFields.tsx
@@ -46,7 +46,7 @@ export const TriggerDevSyncReviewFields = () => {
const displayName = projects?.find((p) => p.id === projectRef)?.name ?? projectRef;
const environmentType = environments?.find((env) => env.slug === environment)?.type;
const environmentLabel = environmentType
- ? ENVIRONMENT_TYPE_LABELS[environmentType] ?? environment
+ ? (ENVIRONMENT_TYPE_LABELS[environmentType] ?? environment)
: environment;
return (
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
index c47e09672b..2f41ec8e8c 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AppConnectionForm.tsx
@@ -43,7 +43,6 @@ import { DopplerConnectionForm } from "./DopplerConnectionForm";
import { ExternalInfisicalConnectionForm } from "./ExternalInfisicalConnectionForm";
import { F5BigIpConnectionForm } from "./F5BigIpConnectionForm";
import { FlyioConnectionForm } from "./FlyioConnectionForm";
-import { TriggerDevConnectionForm } from "./TriggerDevConnectionForm";
import { GcpConnectionForm } from "./GcpConnectionForm";
import { GitHubConnectionForm } from "./GitHubConnectionForm";
import { GitHubRadarConnectionForm } from "./GitHubRadarConnectionForm";
@@ -79,6 +78,7 @@ import { SupabaseConnectionForm } from "./SupabaseConnectionForm";
import { TeamCityConnectionForm } from "./TeamCityConnectionForm";
import { TerraformCloudConnectionForm } from "./TerraformCloudConnectionForm";
import { TravisCIConnectionForm } from "./TravisCIConnectionForm";
+import { TriggerDevConnectionForm } from "./TriggerDevConnectionForm";
import { VenafiConnectionForm } from "./VenafiConnectionForm";
import { VenafiTppConnectionForm } from "./VenafiTppConnectionForm";
import { VercelConnectionForm } from "./VercelConnectionForm";
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/TriggerDevSyncDestinationSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/TriggerDevSyncDestinationSection.tsx
index 56fb888ddd..0f1876ccda 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/TriggerDevSyncDestinationSection.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncDestinationSection/TriggerDevSyncDestinationSection.tsx
@@ -19,12 +19,16 @@ export const TriggerDevSyncDestinationSection = ({ secretSync }: Props) => {
destinationConfig: { projectRef, environment }
} = secretSync;
- const { data: environments } = useTriggerDevConnectionListEnvironments(connection.id, projectRef, {
- enabled: Boolean(connection.id && projectRef)
- });
+ const { data: environments } = useTriggerDevConnectionListEnvironments(
+ connection.id,
+ projectRef,
+ {
+ enabled: Boolean(connection.id && projectRef)
+ }
+ );
const environmentType = environments?.find((env) => env.slug === environment)?.type;
const environmentLabel = environmentType
- ? ENVIRONMENT_TYPE_LABELS[environmentType] ?? environment
+ ? (ENVIRONMENT_TYPE_LABELS[environmentType] ?? environment)
: environment;
return (