mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Update prettier to latest. Remove tslint (#1641)
* Rev up prettier * Reformat * Remove deprecated tslint * Remove call to tslint and update package-lock.json
This commit is contained in:
@@ -237,7 +237,7 @@ describe("Gallery", () => {
|
||||
[authorizationHeader.header]: authorizationHeader.token,
|
||||
[HttpHeaders.contentType]: "application/json",
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -262,7 +262,7 @@ describe("Gallery", () => {
|
||||
[authorizationHeader.header]: authorizationHeader.token,
|
||||
[HttpHeaders.contentType]: "application/json",
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -287,7 +287,7 @@ describe("Gallery", () => {
|
||||
[authorizationHeader.header]: authorizationHeader.token,
|
||||
[HttpHeaders.contentType]: "application/json",
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -310,7 +310,7 @@ describe("Gallery", () => {
|
||||
[authorizationHeader.header]: authorizationHeader.token,
|
||||
[HttpHeaders.contentType]: "application/json",
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -333,7 +333,7 @@ describe("Gallery", () => {
|
||||
[authorizationHeader.header]: authorizationHeader.token,
|
||||
[HttpHeaders.contentType]: "application/json",
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -358,7 +358,7 @@ describe("Gallery", () => {
|
||||
[authorizationHeader.header]: authorizationHeader.token,
|
||||
[HttpHeaders.contentType]: "application/json",
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -396,7 +396,7 @@ describe("Gallery", () => {
|
||||
content: JSON.parse(content),
|
||||
addLinkToNotebookViewer,
|
||||
} as IPublishNotebookRequest),
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -139,7 +139,7 @@ export class JunoClient {
|
||||
`${this.getNotebooksSubscriptionIdAccountUrl()}/github/token?${githubParams.toString()}`,
|
||||
{
|
||||
headers: JunoClient.getHeaders(),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
let data: IGitHubOAuthToken;
|
||||
@@ -167,7 +167,7 @@ export class JunoClient {
|
||||
{
|
||||
method: "DELETE",
|
||||
headers: JunoClient.getHeaders(),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
return {
|
||||
@@ -361,7 +361,7 @@ export class JunoClient {
|
||||
description: string,
|
||||
tags: string[],
|
||||
thumbnailUrl: string,
|
||||
content: string
|
||||
content: string,
|
||||
): Promise<IJunoResponse<IGalleryItem>> {
|
||||
const response = await window.fetch(`${this.getNotebooksSubscriptionIdAccountUrl()}/gallery`, {
|
||||
method: "PUT",
|
||||
@@ -422,7 +422,7 @@ export class JunoClient {
|
||||
}
|
||||
|
||||
public async requestSchema(
|
||||
schemaRequest: DataModels.ISchemaRequest
|
||||
schemaRequest: DataModels.ISchemaRequest,
|
||||
): Promise<IJunoResponse<DataModels.ISchemaRequest>> {
|
||||
const response = await window.fetch(`${this.getAnalyticsUrl()}/schema/request`, {
|
||||
method: "POST",
|
||||
@@ -446,14 +446,14 @@ export class JunoClient {
|
||||
resourceGroup: string,
|
||||
accountName: string,
|
||||
databaseName: string,
|
||||
containerName: string
|
||||
containerName: string,
|
||||
): Promise<IJunoResponse<DataModels.ISchema>> {
|
||||
const response = await window.fetch(
|
||||
`${this.getAnalyticsUrl()}/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/databaseAccounts/${accountName}/schema/${databaseName}/${containerName}`,
|
||||
{
|
||||
method: "GET",
|
||||
headers: JunoClient.getHeaders(),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
let data: DataModels.ISchema;
|
||||
|
||||
Reference in New Issue
Block a user