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

@@ -38,7 +38,7 @@ function generateQueryText(action: ActionContracts.OpenQueryTab, partitionKeyPro
function openCollectionTab(
action: ActionContracts.OpenCollectionTab,
databases: ViewModels.Database[],
initialDatabaseIndex = 0
initialDatabaseIndex = 0,
) {
for (let i = initialDatabaseIndex; i < databases.length; i++) {
const database: ViewModels.Database = databases[i];
@@ -109,7 +109,7 @@ function openCollectionTab(
collection.onNewQueryClick(
collection,
undefined,
generateQueryText(action as ActionContracts.OpenQueryTab, collection.partitionKeyProperties)
generateQueryText(action as ActionContracts.OpenQueryTab, collection.partitionKeyProperties),
);
break;
}
@@ -148,7 +148,7 @@ function openPane(action: ActionContracts.OpenPane, explorer: Explorer) {
.getState()
.openSidePanel(
"Add Table",
<CassandraAddCollectionPane explorer={explorer} cassandraApiClient={new CassandraAPIDataClient()} />
<CassandraAddCollectionPane explorer={explorer} cassandraApiClient={new CassandraAPIDataClient()} />,
);
} else if (
action.paneKind === ActionContracts.PaneKind.GlobalSettings ||
@@ -161,7 +161,7 @@ function openPane(action: ActionContracts.OpenPane, explorer: Explorer) {
export function handleOpenAction(
action: ActionContracts.DataExplorerAction,
databases: ViewModels.Database[],
explorer: Explorer
explorer: Explorer,
): boolean {
if (
action.actionType === ActionContracts.ActionType.OpenCollectionTab ||