Skip to content

chore: bump prettier from 3.0.0 to 3.1.0 in /site #10695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
prettier
  • Loading branch information
Kira-Pilot committed Nov 21, 2023
commit c2ec0793d23ba6891b37caeaffe11e830a3e9223
4 changes: 2 additions & 2 deletions site/e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ type RecursivePartial<T> = {
[P in keyof T]?: T[P] extends (infer U)[]
? RecursivePartial<U>[]
: T[P] extends object | undefined
? RecursivePartial<T[P]>
: T[P];
? RecursivePartial<T[P]>
: T[P];
};

interface EchoProvisionerResponses {
Expand Down
17 changes: 8 additions & 9 deletions site/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,8 @@ export const updateUserPassword = async (
axios.put(`/api/v2/users/${userId}/password`, updatePassword);

export const getRoles = async (): Promise<Array<TypesGen.AssignableRoles>> => {
const response = await axios.get<Array<TypesGen.AssignableRoles>>(
`/api/v2/users/roles`,
);
const response =
await axios.get<Array<TypesGen.AssignableRoles>>(`/api/v2/users/roles`);
return response.data;
};

Expand Down Expand Up @@ -1110,9 +1109,10 @@ export const getFile = async (fileId: string): Promise<ArrayBuffer> => {
export const getWorkspaceProxyRegions = async (): Promise<
TypesGen.RegionsResponse<TypesGen.Region>
> => {
const response = await axios.get<TypesGen.RegionsResponse<TypesGen.Region>>(
`/api/v2/regions`,
);
const response =
await axios.get<TypesGen.RegionsResponse<TypesGen.Region>>(
`/api/v2/regions`,
);
return response.data;
};

Expand Down Expand Up @@ -1293,9 +1293,8 @@ export const updateWorkspace = async (
getWorkspaceBuildParameters(workspace.latest_build.id),
]);
const activeVersionId = template.active_version_id;
const templateParameters = await getTemplateVersionRichParameters(
activeVersionId,
);
const templateParameters =
await getTemplateVersionRichParameters(activeVersionId);
const missingParameters = getMissingParameters(
oldBuildParameters,
newBuildParameters,
Expand Down
4 changes: 2 additions & 2 deletions site/src/api/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ export const getErrorDetail = (error: unknown): string | undefined | null =>
isApiError(error)
? error.response.data.detail
: error instanceof Error
? `Please check the developer console for more details.`
: null;
? `Please check the developer console for more details.`
: null;
4 changes: 2 additions & 2 deletions site/src/pages/CreateTemplatePage/VariableInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ const VariableField: React.FC<VariableInputProps> = ({
variable.type === "number"
? "number"
: variable.sensitive
? "password"
: "string"
? "password"
: "string"
}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export const TemplateVariableField: FC<TemplateVariableFieldProps> = ({
templateVersionVariable.type === "number"
? "number"
: templateVersionVariable.sensitive
? "password"
: "string"
? "password"
: "string"
}
disabled={disabled}
autoFocus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ export const TemplateVersionEditorPage: FC = () => {
tarFile,
newFileTree,
);
const serverFile = await uploadFileMutation.mutateAsync(
newVersionFile,
);
const serverFile =
await uploadFileMutation.mutateAsync(newVersionFile);
const newVersion = await createTemplateVersionMutation.mutateAsync({
provisioner: "terraform",
storage_method: "file",
Expand Down