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 all commits
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
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
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"jest-websocket-mock": "2.5.0",
"jest_workaround": "0.1.14",
"msw": "1.3.0",
"prettier": "3.0.0",
"prettier": "3.1.0",
"protobufjs": "7.2.4",
"rxjs": "7.8.1",
"ssh2": "1.14.0",
Expand Down
8 changes: 4 additions & 4 deletions site/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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