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:
Laurent Nguyen
2023-10-03 15:13:24 +00:00
committed by GitHub
parent e3c168b7be
commit 90c1439d34
311 changed files with 1899 additions and 2194 deletions

View File

@@ -75,7 +75,7 @@ describe("Query Copilot Client", () => {
headers: expect.objectContaining({
"x-ms-correlationid": "mocked-correlation-id",
}),
})
}),
);
const actualBody = JSON.parse(mockFetch.mock.calls[0][1].body);
@@ -109,7 +109,7 @@ describe("Query Copilot Client", () => {
"content-type": "application/json",
"x-ms-correlationid": "mocked-correlation-id",
},
})
}),
);
const actualBody = JSON.parse(mockFetch.mock.calls[0][1].body);

View File

@@ -165,7 +165,7 @@ export const OnExecuteQueryClick = async (): Promise<void> => {
export const QueryDocumentsPerPage = async (
firstItemIndex: number,
queryIterator: MinimalQueryIterator
queryIterator: MinimalQueryIterator,
): Promise<void> => {
try {
useQueryCopilot.getState().setIsExecuting(true);
@@ -173,7 +173,8 @@ export const QueryDocumentsPerPage = async (
useTabs.getState().setIsQueryErrorThrown(false);
const queryResults: QueryResults = await queryPagesUntilContentPresent(
firstItemIndex,
async (firstItemIndex: number) => queryDocumentsPage(QueryCopilotSampleContainerId, queryIterator, firstItemIndex)
async (firstItemIndex: number) =>
queryDocumentsPage(QueryCopilotSampleContainerId, queryIterator, firstItemIndex),
);
useQueryCopilot.getState().setQueryResults(queryResults);

View File

@@ -36,7 +36,7 @@ describe("Sample Prompts snapshot test", () => {
wrapper.find(DefaultButton).at(3).simulate("click");
expect(setTextBoxMock).toHaveBeenCalledWith(
"Write a query to return all records in this table created in the last thirty days"
"Write a query to return all records in this table created in the last thirty days",
);
expect(setIsSamplePromptsOpenMock).toHaveBeenCalledWith(false);
});
@@ -66,13 +66,13 @@ describe("Sample Prompts snapshot test", () => {
wrapper.find(DefaultButton).at(2).simulate("click");
expect(setTextBoxMock).toHaveBeenCalledWith(
"Show items with a description that contains a number between 0 and 99 inclusive."
"Show items with a description that contains a number between 0 and 99 inclusive.",
);
expect(setIsSamplePromptsOpenMock).toHaveBeenCalledWith(false);
wrapper.find(DefaultButton).at(3).simulate("click");
expect(setTextBoxMock).toHaveBeenCalledWith(
"Write a query to return all records in this table created in the last thirty days"
"Write a query to return all records in this table created in the last thirty days",
);
expect(setIsSamplePromptsOpenMock).toHaveBeenCalledWith(false);
});